문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 | 다음 판 양쪽 다음 판 | ||
springframework:resttemplate [2018/03/09 14:34] kwon37xi |
springframework:resttemplate [2018/03/09 14:36] kwon37xi |
||
---|---|---|---|
줄 57: | 줄 57: | ||
* 기본 구현체인 [[https:// | * 기본 구현체인 [[https:// | ||
- | ===== 참조 | + | ===== Interceptor를 통한 로깅 |
- | * [[http:// | + | * [[http:// |
+ | |||
+ | RestTemplate restTemplate = new RestTemplate(); | ||
+ | restTemplate.setRequestFactory(new BufferingClientHttpRequestFactory(new SimpleClientHttpRequestFactory())); | ||
+ | restTemplate.setInterceptors(Lists.newArrayList(new RestTemplateLoggingInterceptor())); | ||
+ | </ | ||