在Mule 3中将类型为'application / x-www-form-urlencoded'的字符串有效负载转换为类型为'application / java'的映射

问题描述

我需要从POST API中读取application/x-www-form-urlencoded数据作为请求正文,内容为String格式,如下所示。如何在 mule3 中将其转换为java.util.Map?

enter image description here

请提出建议!

解决方法

为此,我从mule3中找不到任何直接的转换器支持,找到了一种解决方法,将其除以','并逐个读取值,即可解决我的问题。