关于7.4 spring stream那个章节 报了这样一个错误,说是bean重复定义了 Invalid bean definition with name
来源:7-4 Spring Cloud Stream的使用(上)

qq_熊舞_0
2018-03-20
我把StreamClient.java修改成这样就不会报错了,在rabbitmq中会出现两个exchange.
@Input("myMessage")
SubscribableChannel input();
@Output("myMessage123")
MessageChannel output();
这个是spring cloud的版本问题吗?我用的cloud版本是Finchley.M8
1回答
-
qq_熊舞_0
提问者
2018-03-20
补充下完整的报错信息
Invalid bean definition with name 'myMessage' defined in com.imooc.order.message.StreamClient: bean definition with this name already exists - Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=com.imooc.order.message.StreamClient; factoryMethodName=input; initMethodName=null; destroyMethodName=null
00
SpringCloud Finchley(M2+RELEASE+SR2)微服务实战
5672 学习 · 2489 问题
相似问题