Spring Integration Java DSL:如何将流路由到名称为静态的通道?

时间:2018-11-09 13:36:13

标签: spring-integration spring-integration-dsl

如何使用静态流名称将流路由到下一个通道?如果我尝试

> for (i in 1:(length(ab)-1)) { print(abs(  difftime(ab[i],ab[i+1],units='hours')   ))  }
Time difference of 1958.184 hours
Time difference of 721 hours
Time difference of 744 hours

@Bean
private IntegrationFlow postDataToMyChannel() {
    return f -> f
            ...
            .route("myChannel.input");
}

1 个答案:

答案 0 :(得分:0)

将其设为文字表达式

.route("'myChannel.input'");