Spring integration 如何在XML文件中使用SpEL设置属性值?

Spring integration 如何在XML文件中使用SpEL设置属性值?,spring-integration,spring-dsl,Spring Integration,Spring Dsl,我想将名为“UriVariablesPression”的属性设置为映射类型的值。它将作为集成流中的服务激活器运行。并且输入通道将有一条消息,说明有效负载的值为Map type。如何使用SpEL设置属性 我已经知道了。但这对我没有帮助 <bean id="gitlab-http-outbound-bean" class="org.springframework.integration.http.outbound.HttpRequestExecutingMessageHandler

我想将名为“UriVariablesPression”的属性设置为映射类型的值。它将作为集成流中的服务激活器运行。并且输入通道将有一条消息,说明有效负载的值为Map type。如何使用SpEL设置属性

我已经知道了。但这对我没有帮助

<bean id="gitlab-http-outbound-bean"
      class="org.springframework.integration.http.outbound.HttpRequestExecutingMessageHandler">
      <constructor-arg value="http://70.121.224.25/gitlab/api/v3{gitlab.data.type}{gitlab.private.token}" />
      <property name="uriVariablesExpression" value="payload"/>
      <property name="outputChannel" ref="redca-normalized-channel" />
    </bean>


为什么要将其作为
布线?只需使用
inthttp
名称空间来定义出站网关;并发送一条消息。框架将负责为您配置表达式。如果出于某种原因必须将其配置为bean,则需要创建一个
表达式
对象(使用
SpelExpressionParser
)。但是,如果使用名称空间,可以使用bean name
foo.handler
获取对处理程序的引用,其中
foo
是端点id。好的,我将更改。但是为什么spring集成手册在解释http出站网关时会从这个方法开始介绍呢?在哪种情况下我可以使用这个bean?为什么要将它连接为
?只需使用
inthttp
名称空间来定义出站网关;并发送一条消息。框架将负责为您配置表达式。如果出于某种原因必须将其配置为bean,则需要创建一个
表达式
对象(使用
SpelExpressionParser
)。但是,如果使用名称空间,可以使用bean name
foo.handler
获取对处理程序的引用,其中
foo
是端点id。好的,我将更改。但是为什么spring集成手册在解释http出站网关时会从这个方法开始介绍呢?哪种情况下我可以用这个豆子?