属性文件中的Mule Datamapper值 [英] Mule Datamapper values from property file

查看:86
本文介绍了属性文件中的Mule Datamapper值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下用例

在m子流程中,我已经配置了一个数据映射器,其源类型为XML类型的目标.在目标端,我有一些标头值,其中应包含用户名和密码值.

In mule flow i have configured a data mapper with source to target of types XML. At target side i have some header values which should contain username and password values.

我想从src/main/resources下的属性文件中读取用户名和密码值. 使用普通的MEL表达式$ {user},$ {password}不起作用.有人可以帮忙解决这个问题.

I want to read the username and password values from properties file under src/main/resources. Using normal MEL expression ${user},${password} is not working. Can some one help on this issue.

推荐答案

将这些属性值作为输入参数传递给DataMapper,如下所述: https://stackoverflow.com/a/22248164/387927

Pass these property values as input arguments to DataMapper, as explained here: https://stackoverflow.com/a/22248164/387927

这篇关于属性文件中的Mule Datamapper值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆