导航

在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) 后来忘记将该包引用去掉

    去掉后 项目启动编译正常