我有一个Spring Boot项目,我需要在application.yml
文件中配置Flyway。
有人知道如何使用Yaml吗?
答案 0 :(得分:1)
浏览此Flyway doc
spring:
datasource:
driverClassName: ${DRIVER}
url: ${DB_URL}
username: ${DB_USERNAME}
password: ${DB_PASSWORD}
jpa:
show-sql: true
flyway:
enabled: true
validate-on-migrate: true
implementation 'org.flywaydb:flyway-core'