攔截RestTemplate的請求

RestTemplate一般用於方法內部請求調用,請求報錯時難以調試,所以可以爲RestTemplate加攔截器進行調試,具體操作如下: 攔截器LoggingClientHttpRequestInterceptor: package cn.ucmed.otaka.healthcare.interceptor; import lombok.extern.slf4j.Slf4j; import or
相關文章
相關標籤/搜索