码迷,mamicode.com
首页 > 编程语言 > 详细

spring error

时间:2016-03-12 17:17:57      阅读:300      评论:0      收藏:0      [点我收藏+]

标签:

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

spring error

标签:

原文地址:http://www.cnblogs.com/anjuncc/p/5269255.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!