日期:2014-05-20  浏览次数:20655 次

spring配置问题
 


<tx:advice id="txAdvice" transaction-manager="transManager">
<tx:attributes>
<tx:method name="add*" PROPAGATION="REQUIRED"/>
<tx:method name="update*" PROPAGATION="REQUIRD"/>
<tx:method name="delete*" PROPAGATION="REQUIRD"/>
<tx:method name="*" read-only="true"/>
</tx:attributes>
</tx:advice>



  <aop:config>
  <aop:pointcut id="allManagerMethod" expression="execution (* com.svse.impl.*.*(..))"/>
  <aop:advisor advice-ref="txAdvice" pointcut-ref="allManagerMethod"/>
  </aop:config>


加了以上代码就报错,去了就好了,请问错在哪里?

------解决方案--------------------
这段代码应该没问题。自习检查看看execution后路径还有ref的值