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

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 关注
  • 2883 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信