Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/324.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java spring——应用程序上下文中的bean是否动态绑定到PropertyPlaceHolderConfigure?_Java_Spring - Fatal编程技术网

Java spring——应用程序上下文中的bean是否动态绑定到PropertyPlaceHolderConfigure?

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是否是动态绑定的。具体来说,如果我有

<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配置