File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed 
APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ public HikariDataSource hikaricpDataSource() {
4444 * https://github.com/alibaba/druid/blob/master/src/test/java/com/alibaba/druid/DbTestCase.java 
4545 * @author Lemon 
4646 */ 
47+ // Need to be specify to explicit one when using multiple datasource. Use this or config in application.yml 
48+ // @FlywayDataSource 
4749@ Bean 
4850@ ConfigurationProperties (prefix  = "spring.datasource.druid" )
4951public  DruidDataSource  druidDataSource () {
Original file line number Diff line number Diff line change 11spring :
2+ #  If using flyway-core dependency, either comment this out or use @FlywayDatasource in DemoDataSourceConfig
3+ #  flyway:
4+ #  url: ${spring.datasource.hikari.jdbc-url}
5+ #  user: ${spring.datasource.hikari.username}
6+ #  password: ${spring.datasource.hikari.password}
27 datasource :
38 #  type: com.zaxxer.hikari.HikariDataSource
49 #  driver-class-name: com.mysql.cj.jdbc.Driver
                         You can’t perform that action at this time. 
           
                  
0 commit comments