非web请求feign || 定时器调用feign 报错未注入、单独线程调用
非web调用feign,RequestContextHolder.getRequestAttributes()是null的,所以需要在空的情况赋值一次@Componentpublic class FeignConfig implements RequestInterceptor { private static final Logger log = LoggerFactory.getLogger(FeignInterceptor.class); public FeignInterc.
原创
2021-03-05 16:01:37 ·
1774 阅读 ·
0 评论