Spring-Web项目中加载applicationContext.xml方法
在action中加载applicationContext.xml文件,
如果使用
ApplicationContext context = ClassPathXmlApplicationContext("applicationContext.xml");
多次访问,读取的话,会导致重复读取文件的问题。
解决方法1:
使用WebApplicationContextUtils.get...
原创
2019-10-25 21:54:35 ·
1260 阅读 ·
0 评论