Mule ESB:Context Property Placeholder

2020-07-05 05:25发布

I have a question regarding Mule's context property placeholder, I have two files set up like this:

<context:property-placeholder location="classpath:mule-app-1.properties, file:///etc/mule/conf/mule-app-2.properties" /> 

Firstly is this a valid configuration, secondly which file will take precedence over the other? app1 or app2 file?

-S

标签: spring mule esb
7条回答
疯言疯语
2楼-- · 2020-07-05 06:12

Your configuration should be as follows:

 <context:property-placeholder location="mule-app.properties, file:C://Users//schiraboina//Desktop//123.txt"/>

In the above case you are trying to read the values by using '${key_name}'.The order of precedence will be 1. mule-app.properties 2. Read file from external location

查看更多
登录 后发表回答