diff --git a/src/main/resources/generator/server/springboot/dbmigration/liquibase/main/LiquibaseConfiguration.java.mustache b/src/main/resources/generator/server/springboot/dbmigration/liquibase/main/LiquibaseConfiguration.java.mustache index 90a7e9d5283..7b578957650 100644 --- a/src/main/resources/generator/server/springboot/dbmigration/liquibase/main/LiquibaseConfiguration.java.mustache +++ b/src/main/resources/generator/server/springboot/dbmigration/liquibase/main/LiquibaseConfiguration.java.mustache @@ -18,6 +18,7 @@ import org.springframework.core.env.Environment; @Configuration @EnableConfigurationProperties({ LiquibaseProperties.class }) +@ConditionalOnProperty(prefix = "spring.liquibase", name = { "enabled" }, matchIfMissing = true) class LiquibaseConfiguration { private static final Logger log = LoggerFactory.getLogger(LiquibaseConfiguration.class);