繁体   English   中英

Springboot版本升级——我的sql报错

[英]Springboot version upgrade - my sql error

我们正在尝试通过build.gradle依赖项升级我们的项目:

  • spring-boot 从1.5.7版本到2.3.3

  • Gradle 从Gradle-4.8-all版本到Gradle-6.4.1-all

我们收到以下错误:

Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.internal.command.DbMigrate$FlywayMigrateException: 
    Migration V3__Sequence_Table.sql failed
    ---------------------------------------
    SQL State  : 42001
    Error Code : 42001
    Message    : Syntax error in SQL statement "DELIMITER[*]   

JDBC连接URL在前面提到如下。

o.f.c.internal.database.DatabaseFactory  : Database: jdbc:mysql://xxxxx:3306/mydb (MySQL 5.7)

现在已更改如下,

o.f.c.internal.database.DatabaseFactory  : Database: jdbc:h2:mem:testdb (H2 1.4)

这是上述飞行路线迁移错误的原因吗?

问题:

jar文件的Run命令是这个项目的一个问题`

Dspring.config.location=run.properties这个命令只执行 run.properties

解决方案:

而不是上面的run命令,你应该试试这个jar文件的运行命令

  Dspring.config.additional-location=run.properties

我正在尝试我的项目,并且效果很好

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM