![](/img/trans.png)
[英]How to check that any of the channel in spring-integration SI flow is in processing state?
[英]Spring-integration DSL : how to get programmatically the default channel of a integration flow?
@Bean
public IntegrationFlow flow(){
return f->f
.handle(m ->{System.out.println(m);throw new RuntimeException("probleme");});
}
鉴于此流程,我如何以编程方式获取默认通道(“flow.input”)?
@Autowired
@Qualifier("flow.input")
private MessageChannel flowInputChannel;
要么
MessageChannel flowInputChannel = applicationContext.getBean("flow.input", MessageChannel.class);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.