spring error

<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>

posted on 2016-03-12 16:51  anjuncc  阅读(287)  评论(0编辑  收藏  举报

导航