ESXi6.7扩容Ubuntu虚拟机 |
您所在的位置:网站首页 › pvresize扩容到vg › ESXi6.7扩容Ubuntu虚拟机 |
spring-cloud-stream版本升级,告别旧注解@EnableBinding,拥抱函数式编程
gsls200808: 你这个配置in比out多了个group spring-cloud-stream版本升级,告别旧注解@EnableBinding,拥抱函数式编程Theodo_re: [code=java] @Configuration @Slf4j public class LogConsumer { @Bean public Consumer test(){ return message -> log.info("接收到的消息:{}" , message); } } [/code] spring-cloud-stream版本升级,告别旧注解@EnableBinding,拥抱函数式编程Theodo_re: [code=plain] bindings: test-out-0: destination: test_topic content-type: application/json test-in-0: destination: test_topic content-type: application/json group: topic_test_input [/code] spring-cloud-stream版本升级,告别旧注解@EnableBinding,拥抱函数式编程gsls200808: topic名,group名,function名都改成和生产者一致试试 spring-cloud-stream版本升级,告别旧注解@EnableBinding,拥抱函数式编程Theodo_re: 把消费者方法命名为 in前面的单词,无法消费topic,会是什么原因呢 大佬 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |