From 66d7180831d521e7a5ae503190266576f8ecf3e6 Mon Sep 17 00:00:00 2001 From: dltpwns0 Date: Mon, 6 Nov 2023 17:54:12 +0900 Subject: [PATCH] =?UTF-8?q?WarmupConfig=EC=9D=98=20=EC=A1=B0=EA=B1=B4?= =?UTF-8?q?=EB=B6=80=20=EB=B9=88=20=EC=83=9D=EC=84=B1=20=EC=B2=98=EB=A6=AC?= =?UTF-8?q?=EB=A5=BC=20=EC=9C=84=ED=95=9C=20=20@ConditionalOnProperty=20?= =?UTF-8?q?=EC=96=B4=EB=85=B8=ED=85=8C=EC=9D=B4=EC=85=98=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ayucoupon/common/config/warmup/WarmupConfig.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/ayucoupon/common/config/warmup/WarmupConfig.java b/src/main/java/com/ayucoupon/common/config/warmup/WarmupConfig.java index 5654995..1d249bc 100644 --- a/src/main/java/com/ayucoupon/common/config/warmup/WarmupConfig.java +++ b/src/main/java/com/ayucoupon/common/config/warmup/WarmupConfig.java @@ -4,6 +4,7 @@ import com.ayucoupon.warmup.WarmupRunner; import com.ayucoupon.warmup.WarmupStarter; import lombok.RequiredArgsConstructor; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -12,6 +13,7 @@ @Configuration @EnableConfigurationProperties({CouponWarmupProperties.class, UserCouponWarmupProperties.class}) +@ConditionalOnProperty(prefix = "my.warmup", name = "enabled", havingValue = "true") @RequiredArgsConstructor public class WarmupConfig {