<!-- 配置那些類(lèi)的方法進(jìn)行事務(wù)管理 -->
<aop:config>
<aop:pointcut id="allManagerMethod" expression="execution (* com.test.manager.*.*(..))"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="allManagerMethod"/>
</aop:config>
(expression)路徑出的錯(cuò)
出你那個(gè)異常是由于expression對(duì)應(yīng)的路徑有問(wèn)題,請(qǐng)仔細(xì)查看,是否為你的程序的包路徑!
<aop:config>
<aop:pointcut id="allManagerMethod" expression="execution (* com.test.manager.*.*(..))"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="allManagerMethod"/>
</aop:config>
(expression)路徑出的錯(cuò)
出你那個(gè)異常是由于expression對(duì)應(yīng)的路徑有問(wèn)題,請(qǐng)仔細(xì)查看,是否為你的程序的包路徑!