0
我如何配置我的卡拉夫服务器以这样一种方式,每当有一个属性文件更改,我不应该重新启动我的服务器获取staead这些更改它应该自动检测这些变化。我在osgi Karaf服务器上部署我的包。对于加载属性文件,我在我的骆驼上下文中使用下面的配置。反映在没有重新启动卡拉夫服务器的属性文件更改
<bean
class="org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer"
id="properties">
<property name="locations">
<list><value>file:etc/app/properties/env/env.properties</value>
<value>file:etc/vrol/security/ssl.properties
</value></list></property></bean>
感谢@christian schneider,但我使用Spring DSL。你的意思是不可能与Spring DSL一起工作吗? –
还有一个蓝图dsl几乎与春季dsl完全相同。 –
是的,那么我如何在Spring DSl中实现这个功能呢?我是否必须改变我加载我的财产的方式,即目前我正在使用BridgePropertyPlaceholder。如果可以,请告诉我们如何看待这 –