About spring does not get processing records for XSD on the site

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.