Stream A method annotated with @StreamListener having a return type should also have an outbound tar

Posted 李昊轩的博客

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Stream A method annotated with @StreamListener having a return type should also have an outbound tar相关的知识,希望对你有一定的参考价值。

说明消费者注解的方法存在返回值, 需要特殊处理
两种方法:

  1. void
  2. 在该方法上使用@SendTo 发送到其他队列

以上是关于Stream A method annotated with @StreamListener having a return type should also have an outbound tar的主要内容,如果未能解决你的问题,请参考以下文章

Java Annotation注解语法

Caused by: java.lang.IllegalStateException: @Resource annotation requires a single-arg method: publi

Caused by: java.lang.IllegalStateException: @Resource annotation requires a single-arg method: publi

springCloud Stream

org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping

创建名为 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0 的 bean 时出