RestTemplateConfig 옵션 변경

This commit is contained in:
2026-01-21 14:22:53 +09:00
parent 3ff126e7ac
commit 425092f8db

View File

@@ -1,6 +1,5 @@
package com.kamco.cd.kamcoback.config.resttemplate;
import java.net.Proxy;
import lombok.extern.log4j.Log4j2;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
@@ -15,7 +14,6 @@ public class RestTemplateConfig {
@Bean
public RestTemplate restTemplate(RestTemplateBuilder builder) {
SimpleClientHttpRequestFactory f = new SimpleClientHttpRequestFactory();
f.setProxy(Proxy.NO_PROXY); // 시스템/환경 프록시 무시
f.setConnectTimeout(2000);
f.setReadTimeout(3000);