SpringCloud 不推薦使用的類和方法

2023-11-24 15:11 更新

以下是顯著棄用的快速摘要。有關(guān)更多詳細信息,請參見相應的{spring-cloud-stream-javadoc-current} [javadoc]。

  • SharedChannelRegistry.使用SharedBindingTargetRegistry。
  • Bindings.符合條件的Beans已通過其類型唯一標識,例如,提供了Source,Processor或自定義綁定:
public interface Sample {
	String OUTPUT = "sampleOutput";

	@Output(Sample.OUTPUT)
	MessageChannel output();
}
  • HeaderMode.raw.使用none,headersembeddedHeaders
  • ProducerProperties.partitionKeyExtractorClass贊成partitionKeyExtractorName,而ProducerProperties.partitionSelectorClass贊成partitionSelectorName此更改可確保Spring配置和管理兩個組件,并以Spring友好的方式對其進行引用。
  • BinderAwareRouterBeanPostProcessor.在保留該組件的同時,它不再是BeanPostProcessor,并且將來會重命名。
  • BinderProperties.setEnvironment(Properties environment).使用BinderProperties.setEnvironment(Map<String, Object> environment)

本節(jié)將詳細介紹如何使用Spring Cloud Stream。它涵蓋了諸如創(chuàng)建和運行流應用程序之類的主題。

以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號