开发者社区 问答 正文

spring cloud gateway集成hystrix-dashboar?报错

各位大神  集成这两个模块的时候一直报错org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.zhaohuijun.gateway.run.GatewayApplication]; nested exception is java.lang.IllegalStateException: Failed to introspect annotated methods on class org.springframework.cloud.netflix.hystrix.dashboard.HystrixDashboardConfiguration

展开
收起
爱吃鱼的程序员 2020-06-05 15:51:59 640 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
                        <p>我也碰到了,至今不知道什么原因。只要同时使用这两个就报错。</p> 
    

    可以去掉spring cloud gateway,用HystrixCommond注解方式做转发。

    引入dashboard可以运行成功。

     

    2020-06-05 15:52:15
    赞同 展开评论