Mule ESB:上下文属性占位符 [英] Mule ESB:Context Property Placeholder

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

问题描述

我对Mule的上下文属性占位符有疑问,我设置了两个文件,如下所示:

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" /> 

首先,这是一个有效的配置,其次,哪个文件将优先于另一个文件? app1或app2文件?

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

-S

推荐答案

将依次加载每个属性,覆盖第一个属性的重复属性.因此,在您的情况下,在mule-app-2.properties中定义的属性将优先.

Each will be loaded in turn, overwriting duplicate properties from the first one. So in your case, properties defined in mule-app-2.properties will take precedence.

本文即将结束之前,我描述了使用这种方法来提供环境特定的配置属性.

Towards the end of this article I described using this method to provide environment specific configuration properties.

这篇关于Mule ESB:上下文属性占位符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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