RestTemplateConfig 옵션 변경
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user