org.xml.sax.SAXParseException; lineNumber: 18; columnNumber: 12; schema_reference.4: 无法读取方案文档 'http://www.springframework.org/schema/beans/spring-beans-3.1.0.xsd', 原因为 1) 无法找到文档; 2) 无法读取文档; 3) 文档的根元素不是 <xsd:schema>。
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
....
Caused by: java.io.FileNotFoundException: http://www.springframework.org/schema/beans/spring-beans-3.1.0.xsd
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1890)
.....
出现这个错误的原因是在你的springmvc.xml的配置中写错了版本号(和导入的jar包版本不一致)
http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
或者是你把版本写成了
http://www.springframework.org/schema/beans/spring-beans-3.1.0.xsd