File tree 2 files changed +7
-0
lines changed
APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ public HikariDataSource hikaricpDataSource() {
44
44
* https://github.com/alibaba/druid/blob/master/src/test/java/com/alibaba/druid/DbTestCase.java
45
45
* @author Lemon
46
46
*/
47
+ // Need to be specify to explicit one when using multiple datasource. Use this or config in application.yml
48
+ // @FlywayDataSource
47
49
@ Bean
48
50
@ ConfigurationProperties (prefix = "spring.datasource.druid" )
49
51
public DruidDataSource druidDataSource () {
Original file line number Diff line number Diff line change 1
1
spring :
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}
2
7
datasource :
3
8
# type: com.zaxxer.hikari.HikariDataSource
4
9
# driver-class-name: com.mysql.cj.jdbc.Driver
You can’t perform that action at this time.
0 commit comments