我在我的API网关中添加了密钥斗篷,但从那以后,它无法启动,更具体地说,在添加tokenRelay作为default-filter之后,以下是日志
org.springframework.context.ApplicationContextException: Failed to start bean 'eurekaAutoServiceRegistration'; nested exception is reactor.core.Exceptions$ErrorCallbackNotImplemented: java.lang.IllegalArgumentException: Unable to find GatewayFilterFactory with name TokenRelay
我已经声明了所有必要的依赖项
-
jose
-
资源服务器
-
oauth2客户端
-
启动器安全
我的应用程序类启用了eureka,并使用配置服务器中的属性。
我使用的是启动版本:2.3.12.RELEASE,cloud:Hoxton。RELEASE,java 8
我在application.yml中添加了
...
default-filters:
- TokenRelay