【发布时间】:2020-08-21 14:27:19
【问题描述】:
所以,在我的项目中,我使用了 application.properties 文件。我在这里有三个问题。 1) 我提供了如下 spring 数据源属性。
spring.datasource.driverClassName = com.mysql.jdbc.Driver
spring.datasource.url = jdbc:mysql://localhost:3306/abc
spring.datasource.username =
spring.datasource.password =
即使不提供 flyway 属性,即 flyway.url,我的应用程序也能够成功运行。这怎么可能?提供弹簧属性时 Flyway 不需要吗?
2) 对于 flyway 的其他属性,我使用它的工作原理如下所示
spring.flyway.table=version_history
但它不适用于 spring.flyway.defaultSchema=trial。不知道这个。
3) 如何实现多模式的迁移。有什么例子吗?
【问题讨论】:
标签: mysql spring spring-boot flyway multiple-schema