Summary of Spring FAQ Solutions

Source: Internet
Author: User

Resolve the prefix ' context ' for element ' context:component-scan ' are not bound
<beans xmlns= "Http://www.springframework.org/schema/beans"
Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"
xmlns:context= "Http://www.springframework.org/schema/context"
xmlns:aop= "HTTP://WWW.SPRINGFRAMEWORK.ORG/SCHEMA/AOP"
Xsi:schemalocation= "Http://www.springframework.org/schema/beans
Http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
Http://www.springframework.org/schema/context
Http://www.springframework.org/schema/context/spring-context-2.5.xsd
Http://www.springframework.org/schema/aop
Http://www.springframework.org/schema/aop/spring-aop-2.5.xsd ">

</beans>

<Beansxmlns= "Http://www.springframework.org/schema/beans"Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"Xmlns:context= "Http://www.springframework.org/schema/context"Xmlns:mvc= "Http://www.springframework.org/schema/mvc"xsi:schemalocation= "Http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd Http://www.springframework.org/schema/beans http://www.springframework/org/schema/beans/spring-beans-3.0.xsd "
    >

Http://www.cnblogs.com/pipicoming/archive/2013/12/16/3476235.html

No Grammar constraints (DTD or XML Schema) ..... Two workarounds
Method one: Common methods    Close XML Validation
Toolbar: Windows = Preferences + XML + XML files = validation = I Ndicate when no grammar is specified: Select Ignore.
 
Method Two: (personal recommendation)
Add the following
<?xml version= "1.0" encoding= "UTF-8" standalone= "no";
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 strict//en" "HTTP://WWW.W3.ORG/2002/XMLSPEC/DTD/2.10/XMLSPEC.DTD";
http://blog.csdn.net/xwin1989/article/details/6754790
Http://blog.sina.com.cn/s/blog_6b8f1feb01010y5a.html

Cvc-complex-type.2.4.a:invalid content is found starting with element ' Para-names '. One of ' {"http://
 java.sun.com/xml/ns/javaee":d escription, "Http://java.sun.com/xml/ns/javaee" Param-name} ' is
 expected.
Workaround:
Add Web. XML

xsi:schemalocation= "http://java.sun.com/xml/ns/java EE

Replaced by

xsi:schemalocation= "http://java.sun.com/xml/ns/ee

Summary of Spring FAQ Solutions

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.