BAEL-5457: Add Hikari configuration to datasource (#11923)
This commit is contained in:
parent
cdc6380359
commit
aa35c80c41
|
@ -19,6 +19,7 @@ public class TodoDatasourceConfiguration {
|
|||
|
||||
@Bean
|
||||
@Primary
|
||||
@ConfigurationProperties("spring.datasource.todos.hikari")
|
||||
public DataSource todosDataSource() {
|
||||
return todosDataSourceProperties()
|
||||
.initializeDataSourceBuilder()
|
||||
|
|
|
@ -3,6 +3,7 @@ spring.datasource.todos.url=jdbc:h2:mem:todos
|
|||
spring.datasource.todos.username=sa
|
||||
spring.datasource.todos.password=null
|
||||
spring.datasource.todos.driverClassName=org.h2.Driver
|
||||
spring.datasource.todos.hikari.connectionTimeout=44444
|
||||
spring.datasource.topics.url=jdbc:h2:mem:topics
|
||||
spring.datasource.topics.username=sa
|
||||
spring.datasource.topics.password=null
|
||||
|
|
Loading…
Reference in New Issue