I'm using Spring Feign and Oauth 2.0
My application has
- 1 Api gateway with @EnableOAuth2Sso
- 2 Services with @EnableResourceServer
When I call an api of an service from the other service, I get this exception.
feign.FeignException: status 401 reading TestFeign#test(); content:
{"error":"unauthorized","error_description":"Full authentication is required to access this resource"}
How to call an api of an service from the other service?