属性文件中的Mule Datamapper值 [英] Mule Datamapper values from property file
问题描述
我有以下用例
在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屋!