在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) 后來忘記將該包引用去掉
去掉后 項目啟動編譯正常