spring cloud gateway:Unable to find GatewayFilterFactory with name Hystrix


在springcloud gateway中引用Hystrix filter 编译启动时提示 Unable to find GatewayFilterFactory with name Hystrix 

看了网上有相同的错误 如下

https://stackoverflow.com/questions/51647627/spring-cloud-gateway-2-0-0-releaseunable-to-find-gatewayfilterfactory-with-name

我按照建议加入了下面的pom引用 启动依旧报错

<dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-hystrix</artifactId>
</dependency>

 

解决方案:

    一开始在项目中加入了spring-cloud-starter-openfeign引用(该包引用了,但是工程并未使用feign,因为gateway不支持feign) 后来忘记将该包引用去掉

    去掉后 项目启动编译正常

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM