在Spring Integration中,我收到如下消息:
{
"name":"House",
"attributeIds": [1,3,5]
}
我需要使用一些Rest Service丰富/转换此消息,这将为我提供属性值。
例如http://restservice.com/attributes?id=1,3,5
将回答我>
{"attributes": [ {"id": 1, "value":"Waterproof"}, {"id": 3, "value":"SoundProof"}, {"id": 5, "value":"Concrete"} ]}
最终对象应该看起来像这样:
{ "name":"House", "attributes": [ {"id": 1, "value":"Waterproof"}, {"id": 3, "value":"SoundProof"}, {"id": 5, "value":"Concrete"} ] }
如何实现?
应该是这样吗? https://www.youtube.com/watch?time_continue=273&v=DHPsWDgEUXg
InboundAdapter-> Enricher->请求通道->服务激活器-> Enricher->出站适配器?
在Spring Integration中,我收到如下消息:{“ name”:“ House”,“ attributeIds”:[1,3,5]}我需要使用一些Rest Service丰富/转换此消息,这将给我...