动态路由这里配置zuulProperties不起作用
来源:8-3 Zuul:Cookie和动态路由

浩然之气
2018-10-21
这里zuulProperties不起作用,没有@Bean注解,不会被spring管理
然而加了@Bean注解又会报错
Parameter 0 of method sendResponseFilter in org.springframework.cloud.netflix.zuul.ZuulServerAutoConfiguration required a single bean, but 2 were found:
有什么好的解决方法码?
写回答
2回答
-
版本保持一致,对比我给的源码,还是不行,把代码push给我。
012018-11-02 -
墨7228
2019-09-15
这是注册两个同名ZuulProperties的Bean报的错误,bean冲突
00
SpringCloud Finchley(M2+RELEASE+SR2)微服务实战
SpringCloud组件实现微服务,【已升级Finchley.Release】
5672 学习 · 2489 问题
相似问题