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

Spring Integration Java DSL: How to route the flow to the channel which name is static?

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

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

来了

Caused by: org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or field 'myChannel' cannot be found on object of type 'org.springframework.messaging.support.GenericMessage' - maybe not public or not valid?

让它成为文字表达式

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