Spring configuration file is read by ClassPathXmlApplicationContext path problem

This class is to find the path ClassPathXmlApplicationContext WEB-INF / classes /, so that when the profile configuration may be placed below the source folder of the project, so that the translation of the configuration file will be copied to the WEB-INF / classes / Now go

Reproduced in: https: //www.cnblogs.com/ericsun/archive/2012/06/25/2561114.html

Guess you like

Origin blog.csdn.net/weixin_33871366/article/details/93154900