The problem is this.
Development environment: Win7 + tomcat7 + jdk1.7 + spring4.5
I used XML to configure some of the parameter information to use when Bean,tomcat started, I modified the parameter information in the XML file and then reloaded the bean with the following method
Resource Resource = new Classpathresource (ymall.xml);
beanfactory bf = new Xmlbeanfactory (Resource);
Bf.getbean ("Codebean");
There is no problem in the development environment, when I modify the XML file, without restarting Tomcat, by calling the above method, I can get the modified bean parameter
But ~~~~~~~
It's a wonderful thing.
I packaged the tested program into a production environment: (centos6.5 Linux + tomcat7 + jdk1.7 + spring4.5), no matter how I modify the XML, overload the Bean,
Get the configuration parameters for Tomcat startup, not the configuration parameters that I want to change.
I would like to ask the great God, in the Linux environment, how can I modify to get the results I want ....