教你怎么避免重启你的应用程式
在web.xml中
<context-param>
<param-name>ReLoadConfig</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>ReLoadInterval</param-name>
<param-value>5000</param-value>
</context-param>
<!-- Spring ApplicationContext配置文件的路径。可使用通配符,多个路径用逗号分隔。
此参数用于后面的“Spring-Context loader” -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:resources/spring/*.xml</param-value>
</context-param>