Spring boot - disable Liquibase at startup

前端 未结 6 1908
一生所求
一生所求 2021-02-05 00:45

I want to have Liquibase configured with my spring boot aplication, so I added dependencies to pom.xml and set the path to master.xml in application.properties. This works fine

6条回答
  •  日久生厌
    2021-02-05 01:14

    The relevant property name has changed between Spring versions:

    • For Spring 4.x.x: the liquibase.enabled=false application property disables Liquibase.

    • For Spring 5.x.x: the spring.liquibase.enabled=false application property disables Liquibase.


    P.S. And for Flyway:

    • Spring 4.x.x: flyway.enabled=false

    • Spring 5.x.x: spring.flyway.enabled=false

提交回复
热议问题