flyway

1. TypeNotPresentException: Type org.flywaydb.core.api.callback.FlywayCallback not present

解决办法:

6.4.6 降级到 5.2.1

 

2. Migration createMetaDataTable.sql failed

原因是:druid 配置了 wall。sql injection violation, comment not allow 的意思是 sql注入,操作不被允许执行。

解决方案:

filters: stat,slf4j,wall 
把 filters 配置中 去掉 wall即可。

 

3. -- Add the primary key as part of the CREATE TABLE statement in case `innodb_force_primary_key` is enabled by flyway

解决方案:
同上

 

4. Message    : sql injection violation, comment not allow : CREATE TABLE `lix_agent_iptiq`.`flyway_schema_history` 

解决方案:
同上

 

5. Flyway 启动类

org.flywaydb.core.Flyway

 

posted @ 2021-02-21 13:29  xiluhua  阅读(482)  评论(0编辑  收藏  举报