spring cloud stream Input和outPut同名启动报错
来源:7-4 Spring Cloud Stream的使用(上)

少凡
2018-07-10
下载老师的源码7-5,启动没有问题
然后我改成稳定版
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.3.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<spring-cloud.version>Finchley.RELEASE</spring-cloud.version>
启动就报错
Invalid bean definition with name 'myMessage' defined in com.huilian.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.huilian.order.message.StreamClient; factoryMethodName=output; initMethodName=null; destroyMethodName=null
3回答
-
廖师兄
2018-07-15
Finchley.RELEASE版本不允许同名
022018-08-19 -
Field_Service
2018-07-11
请问这个问题弄明白没? 同样的问题.. 谢谢
00 -
wirechen
2018-07-10
既然老师的版本启动没问题如果你代码没改动的话应该就是版本问题,建议先保持和老师的版本一致,先继续学习。等老师把版本升级的视频录制完成后再看老师怎么弄的。
00
SpringCloud Finchley(M2+RELEASE+SR2)微服务实战
5672 学习 · 2489 问题
相似问题