在springcloud gateway中引用Hystrix filter 編譯啓動時提示 Unable to find GatewayFilterFactory with name Hystrix spring
看了網上有相同的錯誤 以下spa
https://stackoverflow.com/questions/51647627/spring-cloud-gateway-2-0-0-releaseunable-to-find-gatewayfilterfactory-with-namecode
我按照建議加入了下面的pom引用 啓動依舊報錯blog
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-hystrix</artifactId> </dependency>
解決方案:springcloud
一開始在項目中加入了spring-cloud-starter-openfeign引用(該包引用了,可是工程並未使用feign,由於gateway不支持feign) 後來忘記將該包引用去掉it
去掉後 項目啓動編譯正常io