開發四年只會寫業務代碼,分布式高并發都不會還做程式員?->>>

各位大神 集成這兩個模塊的時候一直報錯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
uj5u.com熱心網友回復:
我也碰到了,至今不知道什么原因。只要同時使用這兩個就報錯。
可以去掉spring cloud gateway,用HystrixCommond注解方式做轉發。
引入dashboard可以運行成功。
uj5u.com熱心網友回復:
gateway是異步的,就是只能引入webflux,不能引入web依賴,但是集成hystrix-dashboard需要注入一個ServletRegistrationBean,并且要引入web的依賴,所以與gateway相沖突。。。轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/250800.html
標籤:其他技術討論專區
