flyway.password=pwd2 #does not take effect
flyway.user=user2 #does not take effect
spring.datasource.username=user1
spring.datasource.password=pwd1
user1/pwd1 用于通过 JPA 运行 flyway db 迁移以及 DML 操作。有没有办法让 flyway db 使用另一个凭据?
最佳答案
我也通过指定 flyway.url 让它工作。
关于spring-boot - Spring Boot 为 flywaydb 和 JPA 使用单独的用户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42185810/