Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public HikariDataSource hikaricpDataSource() {
* https://github.com/alibaba/druid/blob/master/src/test/java/com/alibaba/druid/DbTestCase.java
* @author Lemon
*/
// Need to be specify to explicit one when using multiple datasource. Use this or config in application.yml
// @FlywayDataSource
@Bean
@ConfigurationProperties(prefix = "spring.datasource.druid")
public DruidDataSource druidDataSource() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
spring:
# If using flyway-core dependency, either comment this out or use @FlywayDatasource in DemoDataSourceConfig
# flyway:
# url: ${spring.datasource.hikari.jdbc-url}
# user: ${spring.datasource.hikari.username}
# password: ${spring.datasource.hikari.password}
datasource:
# type: com.zaxxer.hikari.HikariDataSource
# driver-class-name: com.mysql.cj.jdbc.Driver
Expand Down