代码之家  ›  专栏  ›  技术社区  ›  noman404

由于找不到名为TokenRelay的GatewayFilterFactory,Spring网关服务失败

  •  0
  • noman404  · 技术社区  · 5 年前

    我在我的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
    
    0 回复  |  直到 5 年前
    推荐文章