From 0d2751841b4c2cd66a6043dde47569e3074dc29a Mon Sep 17 00:00:00 2001 From: bjkim Date: Fri, 8 May 2026 16:01:47 +0900 Subject: [PATCH] =?UTF-8?q?[ADD]=20kubeflowUrl=EC=9D=84=20@Value=EB=A1=9C?= =?UTF-8?q?=20=EC=A3=BC=EC=9E=85=EB=B0=9B=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20=EB=B0=8F=20baseUrl=20=EC=84=A4=EC=A0=95=EA=B0=92?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kr/re/etri/autoflow/batch/KubeflowRunBatchConfig.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/kr/re/etri/autoflow/batch/KubeflowRunBatchConfig.java b/src/main/java/kr/re/etri/autoflow/batch/KubeflowRunBatchConfig.java index cfea56c..7c453d6 100644 --- a/src/main/java/kr/re/etri/autoflow/batch/KubeflowRunBatchConfig.java +++ b/src/main/java/kr/re/etri/autoflow/batch/KubeflowRunBatchConfig.java @@ -16,6 +16,7 @@ import org.springframework.batch.core.step.builder.StepBuilder; import org.springframework.batch.item.ItemProcessor; import org.springframework.batch.item.ItemReader; import org.springframework.batch.item.ItemWriter; +import org.springframework.beans.factory.annotation.Value; import org.springframework.cache.Cache; import org.springframework.cache.CacheManager; import org.springframework.context.annotation.Bean; @@ -41,6 +42,9 @@ public class KubeflowRunBatchConfig { private final KubeflowRunRepository kubeflowRunRepository; private final CacheManager cacheManager; + @Value("${kubeflow.url:http://localhost:8080}") + private String kubeflowUrl; + private static final int PAGE_SIZE = 50; private static final String SORT_BY = "created_at DESC"; @@ -50,7 +54,7 @@ public class KubeflowRunBatchConfig { .responseTimeout(Duration.ofSeconds(30)); // 응답 제한 return WebClient.builder() - .baseUrl("http://192.168.10.135:32473") + .baseUrl(kubeflowUrl) .clientConnector(new ReactorClientHttpConnector(httpClient)) .exchangeStrategies(ExchangeStrategies.builder() .codecs(configurer -> configurer.defaultCodecs()