flyway与占位符 org.flywaydb.core.api.FlywayException: No value provided for placeholder expressions:

…衆ロ難τιáo~ 提交于 2019-11-29 07:30:15

当flyway遇到占位符$而报错的时候,解决方案: spring.flyway.placeholder-replacement=false

如果与maven相结合,解决方案: <plugin> <groupId>org.flywaydb</groupId> <artifactId>flyway-maven-plugin</artifactId> <version>5.2.4</version> <configuration> <url>jdbc:mysql://localhost:3306/test </url> <user>postgres</user> <password>java</password> <outOfOrder>true</outOfOrder> <baselineOnMigrate>true</baselineOnMigrate> <placeholderReplacement>false</placeholderReplacement> <encoding>UTF-8</encoding> <table>fsl_schema_version</table> <locations> <location>db/migration/</location> </locations> </configuration> </plugin>

在termal处执行命令: mvn flyway:migrate

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!