Polishing
See gh-22171
This commit is contained in:
@@ -9,13 +9,11 @@ class BasicDataSourceConfiguration {
|
||||
|
||||
// tag::dataSourceBean[]
|
||||
@Bean(destroyMethod = "close")
|
||||
fun dataSource(): BasicDataSource {
|
||||
val dataSource = BasicDataSource()
|
||||
dataSource.driverClassName = "org.hsqldb.jdbcDriver"
|
||||
dataSource.url = "jdbc:hsqldb:hsql://localhost:"
|
||||
dataSource.username = "sa"
|
||||
dataSource.password = ""
|
||||
return dataSource
|
||||
fun dataSource() = BasicDataSource().apply {
|
||||
driverClassName = "org.hsqldb.jdbcDriver"
|
||||
url = "jdbc:hsqldb:hsql://localhost:"
|
||||
username = "sa"
|
||||
password = ""
|
||||
}
|
||||
// end::dataSourceBean[]
|
||||
}
|
||||
|
||||
@@ -9,13 +9,11 @@ internal class ComboPooledDataSourceConfiguration {
|
||||
|
||||
// tag::dataSourceBean[]
|
||||
@Bean(destroyMethod = "close")
|
||||
fun dataSource(): ComboPooledDataSource {
|
||||
val dataSource = ComboPooledDataSource()
|
||||
dataSource.driverClass = "org.hsqldb.jdbcDriver"
|
||||
dataSource.jdbcUrl = "jdbc:hsqldb:hsql://localhost:"
|
||||
dataSource.user = "sa"
|
||||
dataSource.password = ""
|
||||
return dataSource
|
||||
fun dataSource() = ComboPooledDataSource().apply {
|
||||
driverClass = "org.hsqldb.jdbcDriver"
|
||||
jdbcUrl = "jdbc:hsqldb:hsql://localhost:"
|
||||
user = "sa"
|
||||
password = ""
|
||||
}
|
||||
// end::dataSourceBean[]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user