BAEL-5457: Add Hikari configuration to datasource (#11923)

This commit is contained in:
Ralf Ueberfuhr 2022-03-14 20:23:35 +01:00 committed by GitHub
parent cdc6380359
commit aa35c80c41
2 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@ public class TodoDatasourceConfiguration {
@Bean
@Primary
@ConfigurationProperties("spring.datasource.todos.hikari")
public DataSource todosDataSource() {
return todosDataSourceProperties()
.initializeDataSourceBuilder()

View File

@ -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