springcloud oauth认证时fegin调用token丢失
这个必须要分享出来,实测可用。
**背景:***spring-cloud 中hystrix与oauth2同时启用,fegin调用时一直是token丢失。如果直接搜索"fegin调用token丢失"得到的解决方案都是实现RequestInterceptor 或OAuth2FeignRequestInterceptor然后重写apply方法。其实,正如下面的文章所说的,只能解决Feign不开启Hys...
转载
2019-07-23 23:15:08 ·
1143 阅读 ·
0 评论