Spring Cloud Stream 3.0 新特性 - Spring Cloud Stream中文文档(二)

本文为Spring Cloud Stream文档的中文翻译,原文地址:
https://cloud.spring.io/spring-cloud-static/spring-cloud-stream/3.0.3.RELEASE/reference/html/spring-cloud-stream.html
另外,Spring Cloud 版本:Hoxton.SR3,支持的 Spring Boot 版本:2.2.5.RELEASE

新功能和增强

  • Routing Function-请参见Routing with functions,获取更多详细信息;
  • Multiple bindings with functions(多个消息处理程序)- 请参见Multiple functions in a single application,获取更多详细信息;
  • Functions with multiple inputs/outputs(单个函数可以订阅或发布多个destination)- 请参见Functions with multiple input and output arguments,获取更多详细信息;
  • Native support for reactive programming -从 V3.0.0 开始,我们不再区分 spring-cloud-stream-reactive 模块,而是依赖于Spring Cloud Function 提供的原生的响应式支持。为了向后兼容,你仍然可以从以前的版本中获取spring-cloud-stream-reactive

弃用

  • Reactive 模块 (spring-cloud-stream-reactive)已经停止更新,不再通过 spring-cloud-function 进行分发,以提供原生支持。为了向后兼容,你仍然可以从以前的版本中获取spring-cloud-stream-reactive
  • spring-cloud-stream-test-support使用MessageCollector来_测试支持活页夹_,以支持新的测试活页夹,参见Testing
  • _@StreamMessageConverter_已弃用,因为它不再是必需的;
  • original-content-type在2.0版被弃用已经被移除;
  • 如果提供spring.cloud.stream.sendto.destination属性,BinderAwareChannelResolver是同意被弃用的,这主要用于基于函数的编程模型。对于 StreamListener,它仍然是必需的,因此将一直存在,直到我们弃用并最终抛弃 StreamListener 和基于注解的编程模型。
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值