Flyway 初始化失败。看不到文件
Flyway failed to initialize. Doesn't see files
我有错误:
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-02-11 19:25:22.908 ERROR 8116 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Flyway failed to initialize: none of the following migration scripts locations could be found:
- classpath:db/migration
Action:
Review the locations above or check your Flyway configuration
但是有脚本的文件夹和文件存在!
还有:
Appication.properties
spring.jpa.generate-ddl=true
spring.jpa.show-sql=false
spring.jpa.hibernate.ddl-auto=validate
为什么 Flyway 看不到这些文件?
有点不对劲。根据图像图标,您的文件夹是一个包,而不是资源文件夹。也许您的目录名称是 db.migration
而不是 db/migration
?使用终端或文件管理器再次创建文件夹。
我有错误:
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-02-11 19:25:22.908 ERROR 8116 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Flyway failed to initialize: none of the following migration scripts locations could be found:
- classpath:db/migration
Action:
Review the locations above or check your Flyway configuration
但是有脚本的文件夹和文件存在!
还有:
Appication.properties
spring.jpa.generate-ddl=true
spring.jpa.show-sql=false
spring.jpa.hibernate.ddl-auto=validate
为什么 Flyway 看不到这些文件?
有点不对劲。根据图像图标,您的文件夹是一个包,而不是资源文件夹。也许您的目录名称是 db.migration
而不是 db/migration
?使用终端或文件管理器再次创建文件夹。