Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring集成SpEL:将传递消息记录为方法的参数_Spring_Spring Integration_Spring El - Fatal编程技术网

Spring集成SpEL:将传递消息记录为方法的参数

Spring集成SpEL:将传递消息记录为方法的参数,spring,spring-integration,spring-el,Spring,Spring Integration,Spring El,我是否可以将消息作为参数传递给SpEL中的方法,而不是头或负载: <logging-channel-adapter id="logger" channel="outputLoggingChannel" level="INFO" expression="T(xxx.XmlUtils).prettyPrint(message)" /> 任何帮助都将不胜感激。通过将#root作为参数传递,我们可以传递整个消息,包括头和负载 <logging-channel-ad

我是否可以将消息作为参数传递给SpEL中的方法,而不是头或负载:

    <logging-channel-adapter id="logger" channel="outputLoggingChannel" level="INFO" expression="T(xxx.XmlUtils).prettyPrint(message)" />

任何帮助都将不胜感激。

通过将#root作为参数传递,我们可以传递整个消息,包括头和负载

    <logging-channel-adapter id="logger" channel="outputLoggingChannel" level="INFO" expression="T(xxx.XmlUtils).prettyPrint(#root)" />