标签:
<aop:config>
<aop:pointcut id="allMethod"
expression="execution(* a.j.shop.service.impl.*.*(..))" />
<aop:advisor pointcut-ref="allMethod" advice-ref="txAdvice" />
</aop:config>
上面对,下面借 ***引用一定要在前***
错如下:
Description Resource Path Location Type
cvc-complex-type.2.4.a: Invalid content was found starting with element ‘aop:pointcut‘. One of ‘{"http://www.springframework.org/schema/aop":advisor, "http://www.springframework.org/schema/aop":aspect}‘ is expected. applicationContext.xml /shop/src/main/resources line 37 XML Problem
<aop:config>
<aop:advisor pointcut-ref="allMethod" advice-ref="txAdvice" />
<aop:pointcut id="allMethod"
expression="execution(* a.j.shop.service.impl.*.*(..))" />
</aop:config>
标签:
原文地址:http://www.cnblogs.com/anjuncc/p/5269255.html