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

    去掉后 项目启动编译正常

 

相关文章:

  • 2021-10-11
  • 2021-11-30
  • 2021-06-04
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
猜你喜欢
  • 2021-11-24
  • 2021-04-19
  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
  • 2021-03-27
相关资源
相似解决方案