配置Spring的applicationContext.xml文件时出现The prefix "context" for element "context:component-scan" is not
2017-03-30 11:12
441 查看
配置Spring的applicationContext.xml文件时出现错误:The prefix "context" for element "context:component-scan" is not bound.
解决办法:在文件中添加:
xmlns:context=http://www.springframework.org/schema/context
之后报错:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan'.
解决办法:
在xsi:schemaLocation中添加:
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
解决办法:在文件中添加:
xmlns:context=http://www.springframework.org/schema/context
之后报错:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan'.
解决办法:
在xsi:schemaLocation中添加:
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
相关文章推荐
- The prefix "context" for element "context:component-scan" is not bound.
- The prefix "context" for element "context:component-scan" is not bound.
- Spring中出现The prefix "xxxx" for element "xxxxxx"is not bound.即一些标签不提示而且你又找不到dtd约束文件
- Spring配置文件标签报错:The prefix "XXX" for element "XXX:XXX" is not bound. .
- Dubbo之 The prefix "context" for element "context:component-scan" is not bound
- The prefix "context" for element "context:component-scan" is not bound.
- org.xml.sax.SAXParseException: The prefix "context" for element "context:component-scan" is not boun
- shiro用户授权的时候,在springmvc.xml配置出现The prefix "aop" for element "aop:config" is not bound.
- 关于spring配置中the prefix "tx" for element "tx:annotation-driven" is not bound 问题的处理
- Spring配置文件标签报错:The prefix "XXX" for element "XXX:XXX" is not bound.
- spring 配置问题:The prefix "util" for element "util:list" is not bound"
- 错误解决】The prefix "context" for element "context:component
- Trouble Shoot - The prefix "context" for element "context:component-scan" is not bound. Spring MVC
- Spring 配置文件报错:元素 "context:component-scan" 的前缀 "context" 未绑定。
- 在springmvc配置文件里面写默认的注解映射的支持的时候:<mvc:annotation-driven />The prefix "mvc" for element "mvc:annotation
- Spring配置文件详解一:<context:annotation-config/>与<context:component-scan base-package="com.xx
- 【小平工作日志】Spring注解注入配置:<context:component-scan base-package="**.**"/>详解!
- The prefix "tx" for element "tx:annotation-driven" is not bound. ssm配置事物切面报错
- 错误提示:The prefix "aop" for element "aop:config" is not bound. .
- Spring配置文件:元素 "context:component-scan" 的前缀 "context" 未绑定。