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