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。如果可以,請告訴我們如何看待這 –