简体   繁体   English

为非 springboot 项目禁用 flyway - 正常 maven -spring 项目

[英]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以下是堆栈的版本

  1. Spring - 3.2 Spring - 3.2
  2. Flyway - 4.0.3飞路 - 4.0.3
  3. Mysql - 5.6.3 Mysql - 5.6.3

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.

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