出现这个问题的原因是在头文件中没有添加“xmlns:aop”的命名申明,并在“xsi:schemaLocation”中指定aop配置的schema的地址
修改之后详细为:
错误提示:The prefix “aop” for element “aop:config” is not bound
Eclipse不能识别 aop 标签,提示:
The prefix "aop" for element "aop:config" is not bound.
不识别
标签,提示:
The prefix "tx" for element "tx:advice" is not bound
原因:
我们在定义申明AOP的时候。没有加载schema
。
解决:
首先应该加载JAR包。
还要在
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">
公众号ID:longjiazuoA

未经允许不得转载:人生设计师 » Eclipse启动报错:The prefix “aop” for element “aop:aspectj-autoproxy” is not bound