The prefix "aop" for element "aop:aspectj-autoproxy" is not bound.
2011-11-01 22:03
946 查看
出现这个问题的原因是在头文件中没有添加“xmlns:aop”的命名申明,并在“xsi:schemaLocation”中指定aop配置的schema的地址
修改之后详细为:
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
修改之后详细为:
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
相关文章推荐
- The prefix "aop" for element "aop:aspectj-autoproxy" is not bound.
- java错误-The prefix "aop" for element "aop:aspectj-autoproxy" is not bound.
- The prefix "aop" for element "aop:aspectj-autoproxy" is not bound.
- Caused by: org.xml.sax.SAXParseException: 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.
- 错误提示:The prefix "aop" for element "aop:config" is not bound.
- The prefix "p" for attribute "p:myservice-ref" associated with an element type "bean" is not bound.
- Flex新建组件中添加Style的错误:The prefix "mx" for element "mx:Script" is not bound
- The prefix "mvc" for element "mvc:annotation-driven" is not bound 的解决方法
- The prefix "context" for element "context:component-scan" 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 "tx" for element "tx:advice" is not bound 错误的说明
- 关于spring配置中the prefix "tx" for element "tx:annotation-driven" is not bound 问题的处理
- 报错:The prefix "context" for element "context:annotation-config" is not bound.
- The prefix "mvc" for element "mvc:annotation-driven" is not bound 的解决方法
- The prefix "tx" for element "tx:advice" is not bound 错误的说明
- The prefix "tx" for element "tx:annotation-driven " is not bound
- The prefix "tx" for element "tx:annotation-driven" is not bound. ssm配置事物切面报错