我是否可以将消息作为参数传递给SpEL中的方法,而不是头或有效负载:
<logging-channel-adapter id="logger" channel="outputLoggingChannel" level="INFO" expression="T(xxx.XmlUtils).prettyPrint(message)" />任何帮助都将不胜感激。
发布于 2015-05-28 05:50:32
通过将#root作为参数传递,我们可以传递整个消息,包括报头和有效负载。
<logging-channel-adapter id="logger" channel="outputLoggingChannel" level="INFO" expression="T(xxx.XmlUtils).prettyPrint(#root)" />https://stackoverflow.com/questions/30497856
复制相似问题