@@ -4681,40 +4681,27 @@ public class DataSourceConfig {
4681
4681
}
4682
4682
----
4683
4683
4684
-
4685
- [[jdbc-embedded-database-extension]]
4686
- ==== Extending the embedded database support
4687
-
4688
- Spring JDBC embedded database support can be extended in two ways:
4689
-
4690
- * Implement `EmbeddedDatabaseConfigurer` to support a new embedded database type.
4691
- * Implement `DataSourceFactory` to support a new `DataSource` implementation, such as a
4692
- connection pool to manage embedded database connections.
4693
-
4694
- You are encouraged to contribute back extensions to the Spring community at
4695
- https://jira.spring.io/browse/SPR[jira.spring.io].
4696
-
4684
+ [[jdbc-embedded-database-types]]
4685
+ ==== Selecting the embedded database type
4697
4686
4698
4687
4699
4688
[[jdbc-embedded-database-using-HSQL]]
4700
- ==== Using HSQL
4689
+ ===== Using HSQL
4701
4690
Spring supports HSQL 1.8.0 and above. HSQL is the default embedded database if no type is
4702
4691
specified explicitly. To specify HSQL explicitly, set the `type` attribute of the
4703
4692
`embedded-database` tag to `HSQL`. If you are using the builder API, call the
4704
4693
`setType(EmbeddedDatabaseType)` method with `EmbeddedDatabaseType.HSQL`.
4705
4694
4706
4695
4707
-
4708
4696
[[jdbc-embedded-database-using-H2]]
4709
- ==== Using H2
4697
+ ===== Using H2
4710
4698
Spring supports the H2 database as well. To enable H2, set the `type` attribute of the
4711
4699
`embedded-database` tag to `H2`. If you are using the builder API, call the
4712
4700
`setType(EmbeddedDatabaseType)` method with `EmbeddedDatabaseType.H2`.
4713
4701
4714
4702
4715
-
4716
4703
[[jdbc-embedded-database-using-Derby]]
4717
- ==== Using Derby
4704
+ ===== Using Derby
4718
4705
Spring also supports Apache Derby 10.5 and above. To enable Derby, set the `type`
4719
4706
attribute of the `embedded-database` tag to `DERBY`. If you are using the builder API,
4720
4707
call the `setType(EmbeddedDatabaseType)` method with `EmbeddedDatabaseType.DERBY`.
@@ -4763,6 +4750,20 @@ Framework>> and configuring the embedded database as a bean in the Spring
4763
4750
4764
4751
4765
4752
4753
+ [[jdbc-embedded-database-extension]]
4754
+ ==== Extending the embedded database support
4755
+
4756
+ Spring JDBC embedded database support can be extended in two ways:
4757
+
4758
+ * Implement `EmbeddedDatabaseConfigurer` to support a new embedded database type.
4759
+ * Implement `DataSourceFactory` to support a new `DataSource` implementation, such as a
4760
+ connection pool to manage embedded database connections.
4761
+
4762
+ You are encouraged to contribute back extensions to the Spring community at
4763
+ https://jira.spring.io/browse/SPR[jira.spring.io].
4764
+
4765
+
4766
+
4766
4767
[[jdbc-intializing-datasource]]
4767
4768
=== Initializing a DataSource
4768
4769
The `org.springframework.jdbc.datasource.init` package provides support for initializing
0 commit comments