我正在使用Spring Cloud Stream和RabbitMQ聯編程序。它與byte[]有效負載和Java本地串行化非常相稱,但我需要使用JSON負載。 這是我的處理器類。 @EnableBinding(Processor.class)
public class MessageProcessor {
@ServiceActivator(inputChannel = Processo
我有單獨的配置類,根據Spring Profile創建不同的bean。我希望我的測試儘可能模擬生產代碼,因此我想使用在Spring ‘PROD’ Profile下創建的相同的豆類,但添加/更新專門用於測試的不同屬性。什麼是實現這一目標的最佳方式?我的意思 例子: @Profile(PROD)
public class ProdConfig {
@Bean
public Sim