Java spring——应用程序上下文中的bean是否动态绑定到PropertyPlaceHolderConfigure?
我想知道我的应用程序上下文中的bean是否是动态绑定的。具体来说,如果我有Java spring——应用程序上下文中的bean是否动态绑定到PropertyPlaceHolderConfigure?,java,spring,Java,Spring,我想知道我的应用程序上下文中的bean是否是动态绑定的。具体来说,如果我有 <bean id="mySpringRemoteService" class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean"> <property name="serviceInterface" value="foo.bar.services.mySpringRemo
<bean id="mySpringRemoteService"
class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
<property name="serviceInterface"
value="foo.bar.services.mySpringRemoteService" />
<property name="serviceUrl" value="${spring.remote.service.url}"/>
</bean>
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="classpath:some.properties"/>
</bean>
如果我在我的属性文件中更改服务url的属性,以后检索bean是否会反映此更改?好吧,我认为您自己可以很容易地尝试一下 答案是否定的,除非弹簧的行为在3.x中发生了变化 我相信您必须为配置文件实现运行时更新行为。看看apachecommons配置