[英]Disable flyway for Non springboot project - Normal maven -spring project
I want to disable flyway for a certain environment but can't find a way to do it我想为特定环境禁用飞行路线,但找不到方法
Below are the version of stack以下是堆栈的版本
Exploring flyway and open to any approach for disabling to探索飞行路线并对任何禁用方法开放
Looked for a lot, but all I can find is how to disable it for spring-boot.找了很多,但我只能找到如何为 spring-boot 禁用它。
Can anyone please help?有人可以帮忙吗?
Also I want to use core spring this features through spring and maven, and not via java classes此外,我想通过 spring 和 maven 使用核心 spring 此功能,而不是通过 Z93F7285A07423ZD2F 类 1C
If you could update Spring to version 4 you could use the @Conditional
with a custom Condition
to create the Flyway bean conditionally.如果您可以将 Spring 更新到版本 4,您可以使用@Conditional
和自定义Condition
来有条件地创建 Flyway bean。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.