From 11dc07f14424221fb691b9cce8b59c574eeaecdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Mino?= Date: Thu, 5 Dec 2024 18:46:59 +0100 Subject: [PATCH] feat(liquibase): async liquibase configuration should not be activated if liquibase is disabled --- .../liquibase/main/LiquibaseConfiguration.java.mustache | 1 + 1 file changed, 1 insertion(+) 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);