From e3225dfd1ef6d981c2df032216142443c5a7f901 Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Fri, 16 Jul 2021 15:53:46 +0800 Subject: [PATCH] =?UTF-8?q?feign=E5=B1=9E=E6=80=A7=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chinaunicom/mall/ebtp/common/config/FeignConfig.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/uboot-common/src/main/java/com/chinaunicom/mall/ebtp/common/config/FeignConfig.java b/uboot-common/src/main/java/com/chinaunicom/mall/ebtp/common/config/FeignConfig.java index bcc1487..d7cefaa 100644 --- a/uboot-common/src/main/java/com/chinaunicom/mall/ebtp/common/config/FeignConfig.java +++ b/uboot-common/src/main/java/com/chinaunicom/mall/ebtp/common/config/FeignConfig.java @@ -40,7 +40,9 @@ public class FeignConfig implements RequestInterceptor { @Override public void apply(RequestTemplate template) { ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes(); - + + log.info("--------白名单-"+tokenWhiteList); + log.info("--------请求url-"+template.url()); if (Objects.nonNull(attributes)) { if (isNonExistsWhiteList(template.url())) { injectToken(template, attributes); @@ -76,6 +78,8 @@ public class FeignConfig implements RequestInterceptor { */ private void injectToken(RequestTemplate template, ServletRequestAttributes attributes) { final String header = attributes.getRequest().getHeader(AUTHORIZATION_HEADER);// 提取request头信息 + + log.info("--------请求header信息-"+header); // 移除已存的头信息 template.removeHeader(AUTHORIZATION_HEADER);