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