@Router in Spring Integration with annotations (request/reply)
问题 Could you provide any example for routing messages in Spring Integration?. Filter by payload message, header or something like the following: <int:payload-type-router input-channel="routingChannel"> <int:mapping type="java.lang.String" channel="channel1" /> <int:mapping type="java.lang.Integer" channel="channel2" /> </int:payload-type-router> How the response works? I mean, if I send: channel -> router -> transformer -> gateway Simple but I am looking something similar to this example: <int