Spring配置文件标签报错:The prefix "XXX" for element "XXX:XXX" is not bound. .
2012-12-12 12:27
537 查看
The prefix "context" for element "context:annotation-config" is not bound.
这种情况是因为没有申明该标签,然后就使用了。解决方发是,在配置文件头部加入相应的信息即可( 即xmlns:context="http://www.springframework.org/schema/context")。
这种情况是因为没有申明该标签,然后就使用了。解决方发是,在配置文件头部加入相应的信息即可。eg:
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.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.xsd">
这种情况是因为没有申明该标签,然后就使用了。解决方发是,在配置文件头部加入相应的信息即可( 即xmlns:context="http://www.springframework.org/schema/context")。
这种情况是因为没有申明该标签,然后就使用了。解决方发是,在配置文件头部加入相应的信息即可。eg:
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.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.xsd">
相关文章推荐
- Spring配置文件标签报错:The prefix "XXX" for element "XXX:XXX" is not bound.
- Spring中出现The prefix "xxxx" for element "xxxxxx"is not bound.即一些标签不提示而且你又找不到dtd约束文件
- aop advisor说明以及The prefix "aop" for element "aop:config" is not bound.错误原因
- 错误提示:The prefix "aop" for element "aop:config" is not bound. .
- shiro用户授权的时候,在springmvc.xml配置出现The prefix "aop" for element "aop:config" is not bound.
- spring 配置问题:The prefix "util" for element "util:list" is not bound"
- 配置Spring的applicationContext.xml文件时出现The prefix "context" for element "context:component-scan" is not
- 关于spring配置中the prefix "tx" for element "tx:annotation-driven" is not bound 问题的处理
- 错误提示:The prefix "aop" for element "aop:config" is not bound. .
- Spring 配置文件报错: cvc-elt.1: Cannot find the declaration of element ""beans""
- The prefix "tx" for element "tx:advice" is not bound 错误的说明
- Flex新建组件中添加Style的错误:The prefix "mx" for element "mx:Script" is not bound
- java错误-The prefix "aop" for element "aop:aspectj-autoproxy" is not bound.
- 在springmvc配置文件里面写默认的注解映射的支持的时候:<mvc:annotation-driven />The prefix "mvc" for element "mvc:annotation
- The prefix "tx" for element "tx:advice" is not bound 错误的说明
- the prefix "tx" for element "tx:annotation-driven" is not bound
- The prefix "mvc" for element "mvc:annotation-driven" is not bound 的解决方法
- dom4j The prefix “xxx” for element "xxx:yyy" is not bound
- 报错:The prefix "context" for element "context:annotation-config" is not bound.
- The prefix "tx" for element "tx:annotation-driven" is not bound. ssm配置事物切面报错