优化hystrix熔断器线程池

This commit is contained in:
ajaxfan
2021-05-19 16:09:52 +08:00
parent 2c97400300
commit e6e0cd268f
2 changed files with 10 additions and 4 deletions

View File

@ -41,6 +41,8 @@ public class FeignConfig implements RequestInterceptor {
public void apply(RequestTemplate template) {
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
System.out.println(attributes);
if (Objects.nonNull(attributes)) {
if (isNonExistsWhiteList(template.url())) {
injectToken(template, attributes);