在web.xml加载各种文件时会遇到的问题:
classpath:classpath是WEB-INF文件夹下的classes目录
用classpath:xxx来读取文件:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
用/WEB-INF/classes/xx..来读取文件:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/classes/applicationContext.xml</param-value>
</context-param>