动态路由这里配置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回答

廖师兄

2018-10-22

版本保持一致,对比我给的源码,还是不行,把代码push给我。

0
1
浩然之气
又试了下是可以动态更新的 不好意思,之前不知是哪里配置错了 非常感谢啊
2018-11-02
共1条回复

墨7228

2019-09-15

这是注册两个同名ZuulProperties的Bean报的错误,bean冲突

0
0

SpringCloud Finchley(M2+RELEASE+SR2)微服务实战

SpringCloud组件实现微服务,【已升级Finchley.Release】

5672 学习 · 2489 问题

查看课程