为了账号安全,请及时绑定邮箱和手机立即绑定

spring boot-spring cloud stream Input和outPut同名启动报错

spring boot-spring cloud stream Input和outPut同名启动报错

看的是廖师兄的课程,里面说到配置StreamClient的时候,取得同名,服务启动报错public interface StreamClient {    String INPUT = "myMessage";    @Input(StreamClient.INPUT)    SubscribableChannel myInput();    @Output(StreamClient.INPUT)    MessageChannel myOutput(); }springboot:2.0.0.RELEASEspringcloud:Finchley.SR2报错信息org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'myMessage' defined in com.littlehao.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.littlehao.order.message.StreamClient; factoryMethodName=myOutput; initMethodName=null; destroyMethodName=null
查看完整描述

4 回答

?
麻了一一一

TA贡献1条经验 获得超1个赞

我也遇到同样的问题了,困扰好久解决不了,请问您这解决了吗?

查看完整回答
1 反对 回复 2019-01-04
  • 4 回答
  • 0 关注
  • 3064 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号