Setting property 'source' to 'org.eclipse.jst.jee.server:springmvc-first' did not find a matching property.将属性‘source’设置为‘org.eclipse.jst.jee.server:Springmvc-first’没有找到匹配的属性。
org.xml.sax.SAXParseException; lineNumber: 8; columnNumber: 126; schema_reference.4: 无法读取方案文档 'http://www.springframework.org/schema/beans/spring-beans-4.3.xsd', 原因为 1) 无法找到文档; 2) 无法读取文档; 3) 文档的根元素不是 <xsd:schema>。
Caused by: java.net.ConnectException: Connection timed out: connect
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 8 in XML document from class path resource [springmvc.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 8; columnNumber: 126; cvc-elt.1: 找不到元素 'beans' 的声明。
在复制粘贴代码时,主要是约束配置错误。
如springmvc.xml的约束的版本号没有改成与自己在XML Catalog配置的相一致。

本文分析了SpringMVC项目中出现的404错误及XML配置问题,特别是spring-beans版本不匹配导致的错误,并提供了可能的解决方案。

被折叠的 条评论
为什么被折叠?



