문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
springframework:resttemplate [2018/03/09 14:36] kwon37xi |
springframework:resttemplate [2020/07/20 14:58] kwon37xi |
||
---|---|---|---|
줄 2: | 줄 2: | ||
* [[https:// | * [[https:// | ||
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
===== HttpEntity ===== | ===== HttpEntity ===== | ||
줄 59: | 줄 62: | ||
===== Interceptor를 통한 로깅 ===== | ===== Interceptor를 통한 로깅 ===== | ||
* [[http:// | * [[http:// | ||
+ | // ClientHttpRequestInterceptor 인터페이스를 로깅을 남기게 구현해서 넣어주면 된다. | ||
RestTemplate restTemplate = new RestTemplate(); | RestTemplate restTemplate = new RestTemplate(); | ||
줄 64: | 줄 68: | ||
restTemplate.setInterceptors(Lists.newArrayList(new RestTemplateLoggingInterceptor())); | restTemplate.setInterceptors(Lists.newArrayList(new RestTemplateLoggingInterceptor())); | ||
</ | </ | ||
+ | |||
+ | ===== 참조 ===== | ||
+ | * [[https:// | ||