zoukankan      html  css  js  c++  java
  • 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) 后来忘记将该包引用去掉

        去掉后 项目启动编译正常

  • 相关阅读:
    java中排序算法
    maven常用命令
    Team_GJX模板整理
    BZOJ 4128
    BZOJ 1169: [Baltic2008]Grid
    Codeforces Round #448 (Div. 2)
    HDU 5942
    2016 ICPC 沈阳
    2016 ICPC 北京
    2016 CCPC 杭州
  • 原文地址:https://www.cnblogs.com/king1302217/p/11669935.html
Copyright © 2011-2022 走看看