Unable to find GatewayFilterFactory with name xxx
原因是过滤器名称导致的...
spring 约定过滤器类名"xxx"+GatewayFilterFactory,其中"xxx"为配置中的name;

  • 配置文件中
filters:
            - name: ValidateCodeFilter

改成

filters:
            - name: ValidateCode
  • 过滤器类名
public class ValidateCodeFilter  extends AbstractGatewayFilterFactory {
}

改成

public class ValidateCodeGatewayFilterFactory extends AbstractGatewayFilterFactory {
}
 

链接:https://www.jianshu.com/p/61ad2d3317b1
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

相关文章:

  • 2022-12-23
  • 2022-02-05
  • 2021-09-15
  • 2022-01-03
  • 2022-12-23
  • 2022-02-26
  • 2022-12-23
猜你喜欢
  • 2021-12-13
  • 2021-04-19
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
相关资源
相似解决方案