拦截RestTemplate的请求

RestTemplate一般用于方法内部请求调用,请求报错时难以调试,所以可以为RestTemplate加拦截器进行调试,具体操作如下: 拦截器LoggingClientHttpRequestInterceptor: package cn.ucmed.otaka.healthcare.interceptor; import lombok.extern.slf4j.Slf4j; import or
相关文章
相关标签/搜索