spring4 xml文件更新從新加載bean的奇葩問題

問題是這樣的 開發環境:win7 + tomcat7 + jdk1.7 + spring4.5linux 我用xml配置了應用要用到的一些參數信息bean,tomcat啓動以後,我修改了xml文件裏的參數信息,而後用如下方法從新加載beanspring Resource resource = new ClassPathResource(ymall.xml); BeanFactory bf = ne
相關文章
相關標籤/搜索