2.0.6.RELEASE+Finchley.SR2 @input @output 通道名不能一样
来源:7-4 Spring Cloud Stream的使用(上)

liuwc
2018-11-07
public interface StreamClient {
String INPUT = “myMessage”;
String INPUT2 = “myMessage”;
@Input(StreamClient.INPUT)
SubscribableChannel input();
@Output(StreamClient.INPUT2)
MessageChannel output();
}
写回答
2回答
-
这是新版本的规定,课程最后升级到新版本了,也讲到这点了。springcloud组件新旧版本用法上有差异,学习过程中保持和视频中一样的版本。
062018-12-11 -
bgkp
2019-05-21
stream:
binders:
myinput:
destination: minestream #指定输入通道对应的主题名
myOutput:
destination: minestream指定通道名字就可以了
00
SpringCloud Finchley(M2+RELEASE+SR2)微服务实战
SpringCloud组件实现微服务,【已升级Finchley.Release】
5673 学习 · 2489 问题
相似问题