The first two days to do a project also good, today suddenly reported this error
Cvc-complex-type.2.4.c:the matching wildcard is strict, but no declaration can be found for element ' mvc:annotation-drive N
should be the XML file can not find the corresponding XSD, at this time my springmvc.xml head is so configured, before the specified version number total error, the version number is deleted, but today there are no version number are error:
<Beansxmlns= "Http://www.springframework.org/schema/beans"Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"Xmlns:mvc= "Http://www.springframework.org/schema/mvc"Xmlns:context= "Http://www.springframework.org/schema/context"XMLNS:AOP= "HTTP://WWW.SPRINGFRAMEWORK.ORG/SCHEMA/AOP"Xmlns:tx= "Http://www.springframework.org/schema/tx"xsi:schemalocation= "Http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd HTTP://WWW.SPRINGFRAMEWORK.ORG/SCHEMA/MVC http://www.springframework.org/schema/mvc/spring-mvc.xsd HT Tp://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd HTTP://WWW.SPRINGFRAMEWORK.ORG/SCHEMA/AOP http://www.springframework.org/schema/aop/spring-aop.xsd http ://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd ">
Enter one of the URLs in the website also can't access, do not know is spirng problem or My network speed problem.
Workaround: Copy the XSD file from the downloaded Spring jar package to the project source folder, which has various versions, and then change the header configuration of the XML to:
<Beansxmlns= "Http://www.springframework.org/schema/beans"Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"Xmlns:mvc= "Http://www.springframework.org/schema/mvc"Xmlns:context= "Http://www.springframework.org/schema/context"XMLNS:AOP= "HTTP://WWW.SPRINGFRAMEWORK.ORG/SCHEMA/AOP"Xmlns:tx= "Http://www.springframework.org/schema/tx"xsi:schemalocation= "Http://www.springframework.org/schema/beans classpath:beans/spring-beans-4.2.xsd HTTP://WWW.SPRINGFR AMEWORK.ORG/SCHEMA/MVC classpath:mvc/spring-mvc-4.2.xsd Http://www.springframework.org/schema/context Classpath:context/spring-context-4.2.xsd HTTP://WWW.SPRINGFRAMEWORK.ORG/SCHEMA/AOP Classpath:aop/sprin G-aop-4.2.xsd http://www.springframework.org/schema/tx classpath:tx/spring-tx-4.2.xsd ">
The problem is resolved so that the XSD should be fetched locally, even if no network can parse the XML.
About spring does not get processing records for XSD on the site