Spring Integration Control Bus configuration via annotations

后端 未结 2 577
刺人心
刺人心 2021-01-05 19:06

Just a simple question: Is there any way to configure Spring Integration Control Bus via annotations (without any xml)



        
2条回答
  •  萌比男神i
    2021-01-05 19:43

    The Spring Integration Java DSL provides the stuff on the matter:

    @Bean
    public IntegrationFlow controlBusFlow() {
         return IntegrationFlows.from("operationChannel").controlBus().get();
    }
    

提交回复
热议问题