1.配置文件找不到beans元素:多是xsd与spring版本不一致,致使没法效验; html
解决方案:将applicationContext.xml中xsd文件定义的版本改成spring jar包中定义的xsd的版本,若是版本定义的过高在本地会没法找到,只能从网络上下载。java
可参考:https://www.cnblogs.com/longshiyVip/p/4574070.html#undefinedspring
2.java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/springmvc-servlet.xm】网络
对于Maven项目,若是不特地指定参数名为contextConfigLoction的<context-parameter>元素,那么spring的ContextLoderListener监听器就会在/WEB-INF/下去寻找并加载该目录下的名为applicationContext.xml这个文件mvc
可参考:http://blog.csdn.net/wlwlwlwl015/article/details/48134763app