SpringMVC 与 Mybatis 框架整合-lesson6有错误

jike_4614768 SpringMVC+Mybat... 最后由 上海小胖 于2017年03月07日回复

  • 1 回答
  • 1.6k 浏览

lesson6 源代码有错误

Description Resource Path Location Type

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan'. applicationContext.xml /test/src/main/resources/resources line 19 XML Problem

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:property-placeholder'. applicationContext.xml /lesson6/src/main/resources line 75 XML Problem

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:property-placeholder'. applicationContext.xml /test/src/main/resources/resources line 75 XML Problem

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'task:annotation-driven'. applicationContext.xml /test/src/main/resources/resources line 24 XML Problem

cvc-elt.1: Cannot find the declaration of element 'beans'. applicationContext.xml /lesson6/src/main/resources line 14 XML Problem

cvc-elt.1: Cannot find the declaration of element 'beans'. spring-mvc.xml /lesson6/src/main/webapp/WEB-INF line 6 XML Problem

cvc-elt.1: Cannot find the declaration of element 'beans'. spring-mvc.xml /test/src/main/webapp/WEB-INF line 6 XML Problem

Referenced file contains errors (http://www.springframework.org/schema/context/spring-context-4.0.xsd).  For more information, right click on the message in the Problems View and select "Show Details..." spring-mvc.xml /lesson6/src/main/webapp/WEB-INF line 1 XML Problem

Referenced file contains errors (http://www.springframework.org/schema/task/spring-task-4.0.xsd).  For more information, right click on the message in the Problems View and select "Show Details..." applicationContext.xml /lesson6/src/main/resources line 1 XML Problem

Referenced file contains errors (http://www.springframework.org/schema/tx/spring-tx-4.0.xsd).  For more information, right click on the message in the Problems View and select "Show Details..." applicationContext.xml /test/src/main/resources/resources line 1 XML Problem

No grammar constraints (DTD or XML Schema) referenced in the document. applicationContext.xml /lesson6/build/classes/main/resources line 1 XML Problem

No grammar constraints (DTD or XML Schema) referenced in the document. logback.xml /lesson6/build/classes/main/resources line 1 XML Problem

No grammar constraints (DTD or XML Schema) referenced in the document. logback.xml /lesson6/src/main/resources line 1 XML Problem

No grammar constraints (DTD or XML Schema) referenced in the document. logback.xml /test/src/main/resources/resources line 1 XML Problem

schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans-4.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. applicationContext.xml /lesson6/src/main/resources line 14 XML Problem

schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans-4.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. spring-mvc.xml /lesson6/src/main/webapp/WEB-INF line 6 XML Problem

schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans-4.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. spring-mvc.xml /test/src/main/webapp/WEB-INF line 6 XML Problem

schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/context/spring-context-4.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. applicationContext.xml /lesson6/src/main/resources line 19 XML Problem

schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/context/spring-context-4.0.xsd', because 1) could not find the document; 2) the document co

  • 上海小胖 2017年03月07日 回答 #1楼
  • cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan'. 

    需要对这段错误进行分析。

    对象未被定义declaration 

  • 0 评论