在使用feign消费者调用提供者的时候 “返回认证” 报错
Full authentication is required to access this resource
详细错误
{"timestamp":1524018915085,"status":401,"error":"Unauthorized","message":"Full authentication is required to access this resource","path":"/activity-provider-service/user/add/12312321"}
直接访问提供者是可以成功的,通过消费者调用提供者服务就会报这个错误401
如果关闭掉security认证是可以访问成功的
注册配置
提供者
调用者
解决办法添加拦截器