Mul获取http参数

想要了解Mule如何获取http参数,您只需要一张图... 示例:

1、http://localhost:8081/greet?username=yourName 可以通过#[message.inboundProperties.'http.query.params'.username]获取参数

2、对于通过post提交的参数,可以通过#[payload.inputName]的方式获取 3、如果提交的参数为json字符串,例如{"employee":{"username":"zhangsan"}},可以通过#[json:employee/username]的方式获取。

 

posted on 2018-06-03 13:51  巍巍之道  阅读(367)  评论(0编辑  收藏  举报

导航