How to route the flow to the next channel with the static flow name? If I try this
@Bean
private IntegrationFlow postDataToMyChannel() {
return f -> f
...
.route("myChannel.input");
}
there comes
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?
Make it a literal expression
.route("'myChannel.input'");