Class RestTemplateLoggingInterceptor
- java.lang.Object
-
- net.dreamlu.mica.java11.rest.logger.RestTemplateLoggingInterceptor
-
- All Implemented Interfaces:
org.springframework.http.client.ClientHttpRequestInterceptor
public class RestTemplateLoggingInterceptor extends Object implements org.springframework.http.client.ClientHttpRequestInterceptor
RestTemplate 日志打印- Author:
- L.cm
-
-
Constructor Summary
Constructors Constructor Description RestTemplateLoggingInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.client.ClientHttpResponseintercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution)
-
-
-
Method Detail
-
intercept
public org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution) throws IOException- Specified by:
interceptin interfaceorg.springframework.http.client.ClientHttpRequestInterceptor- Throws:
IOException
-
-