Chl*_*loe 5 java spring maven flyway spring-boot
每当我运行mvn spring-boot:run
Flyway 时,它都会自动获取待处理的迁移/src/main/resources/db/migration/
并运行它们。现在不行了。即使当我使用mvn compile
或mvn package
它抱怨缺少表时 - 因为挂起的迁移会创建它!我尝试了一下mvn flyway:migrate
,它抱怨
[错误] 在当前项目和插件组 [org.apache.maven.plugins, org.codehaus.mojo] 中找不到前缀“flyway”的插件,可从存储库 [local (C:\Users\Chloe.m2) \repository), 中央 ( https://repo.maven.apache.org/maven2)] -> [帮助 1]
这是 POM
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
</dependency>
Run Code Online (Sandbox Code Playgroud)
https://flywaydb.org/documentation/plugins/springboot
我在运行时在控制台输出中发现了这一点spring-boot:run
:
2018-07-30 23:36:24.980 INFO 197376 --- [ restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration' of type [org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration$$EnhancerBySpringCGLIB$$e24a304] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-07-30 23:36:24.987 INFO 197376 --- [ restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'stringOrNumberMigrationVersionConverter' of type [org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration$StringOrNumberToMigrationVersionConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Run Code Online (Sandbox Code Playgroud)
Java 8、Mvn 3、Spring Boot 1.5.13
归档时间: |
|
查看次数: |
11799 次 |
最近记录: |