Dubbo之 The prefix "context" for element "context:component-scan" is not bound
来源:互联网 发布:mac 战网 改台服 编辑:程序博客网 时间:2024/05/29 19:23
问题描述
Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 13 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 13; columnNumber: 86; The prefix "context" for element "context:component-scan" is not bound.
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:399)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:252)
问题解决
spring配置<context:component-scan base-package="包名" />,报如下错误:
The prefix "context" for element "context:component-scan" is not bound.
是因为该配置文件的<bean></bean>标签的属性中少了属性信息,增加相应属性即可,如下:
xmlns:context="http://www.springframework.org/schema/context"
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
阅读全文
0 0
- Dubbo之 The prefix "context" for element "context:component-scan" is not bound
- The prefix "context" for element "context:component-scan" is not bound.
- The prefix "context" for element "context:component-scan" is not bound.
- Trouble Shoot - The prefix "context" for element "context:component-scan" is not bound. Spring MVC
- org.xml.sax.SAXParseException: The prefix "context" for element "context:component-scan" is not boun
- 报错:The prefix "context" for element "context:annotation-config" is not bound.
- Spring The prefix "context" for element "context:annotation-config" is not bound.
- 错误解决】The prefix "context" for element "context:component
- The prefix "tx" for element "tx:advice" is not bound.
- The prefix "tx" for element "tx:advice" is not bound
- Intellij IDEA配置springMVC时提示"context:component-scan" is not bound
- no declaration can be found for element 'context:component-scan'
- The prefix "tx" for element "tx:annotation-driven " is not bound The prefix "tx" for element "tx:ann
- The prefix "tx" for element "tx:advice" is not bound 错误的说明
- The prefix "tx" for element "tx:advice" is not bound 错误的说明
- 错误提示:The prefix "aop" for element "aop:config" is not bound.
- 错误提示:The prefix "aop" for element "aop:config" is not bound. .
- The prefix "aop" for element "aop:aspectj-autoproxy" is not bound.
- 修改ubuntu默认键盘布局
- python 操作 mysql
- spring 容器初始化執行某些方法
- httpclient4.5 的一些细节
- Unity3D研究院之使用 C#合成解析XML与JSON
- Dubbo之 The prefix "context" for element "context:component-scan" is not bound
- codeforces D. Levko and Array(二分加dp) 挺好的一个题
- Apache OpenOffice
- pytorch对可变序列的处理
- 万树IT:零基础也能学习安卓开发
- Django技术详解(五)开发Models
- Codeforces Round #451 (Div. 2) D. Alarm Clock (贪心+双指针)
- 设计模式模版方法模式(TemplateMethodPattern)
- Eclipse设置Tab键缩进4个空格的步骤