1.在配置文件中为每个binding指定binder:
#stream(不用消息队列可以删除)
spring.cloud.stream:
bindings:
#消息发送者配置
output1:
binder: rabbit
destination: test_exchange
#主站Kafka退款消息接收通道
input2:
binder: kafka
destination: test_topic
group: test_group
output2:
binder: kafka
destination: test_topic
2.在消息接口中定义了的输入/输出通道,必须在配置文件中进行声明,否则启动会报错!