首页 > 编程语言 > 详细

spring cloud gateway 报错 Unable to find GatewayFilterFactory with name

时间:2021-05-17 22:07:40      阅读:448      评论:0      收藏:0      [点我收藏+]

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
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

spring cloud gateway 报错 Unable to find GatewayFilterFactory with name

原文:https://www.cnblogs.com/duanxz/p/14778019.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!