Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个微服务项目,我开始在其中使用 FeignClien。但是有一个问题,如果我授权了一项服务并从该服务转到另一项服务,那么我还需要在另一项服务上登录。此类应用程序的代码可以在这里找到。如何解决这个问题呢?
这个问题有以下解决方法。我刚刚添加
`<dependency> <groupId>io.jmnarloch</groupId> <artifactId>feign-oauth2-spring-cloud-starter</artifactId> <version>1.0.0</version> </dependency>`
并在 application.yml 中添加以下属性
feign: oauth2: enabled: true