mule从url到消息负载获取值
我的url为: localhost:8081/urltest?company=test?emplId=1234mule从url到消息负载获取值,mule,Mule,我的url为: localhost:8081/urltest?company=test?emplId=1234 我需要得到有效载荷中公司和员工ID的价值。我是否需要使用transformer并获取所有值,或者可以从mule expression中的有效负载中获取值?尝试使用MEL expression获取如下值:- #[message.inboundProperties['company']]和#[message.inboundProperties['emplId']] 检查是否在记录器中获得以
我需要得到有效载荷中公司和员工ID的价值。我是否需要使用transformer并获取所有值,或者可以从mule expression中的有效负载中获取值?尝试使用MEL expression获取如下值:-
#[message.inboundProperties['company']]
和#[message.inboundProperties['emplId']]
检查是否在记录器中获得以下值:-
<logger message="#[message.inboundProperties['company']]" level="INFO" doc:name="Logger"/>
正如我所相信的那样,localhost:8081/urltest?company=test?emplId=1234可能无法工作
供你参考。。我发现了一篇文章:-使用这个表达式,您可以从url获取用户ID
<logger message="#[message.inboundProperties['userid']]" level="INFO" doc:name="Logger"/>
localhost:8081/urltest/?company=test&emplId=1234
<logger message="#[message.inboundProperties['userid']]" level="INFO" doc:name="Logger"/>