本帖最后由 u010110607 于 2014-04-13 15:43:40 编辑

解决方案 »

  1.   

    已经解决了:是事务的原因
    之前是:
    <aop:config>
      <aop:pointcut expression="execution(* org.wrg.service.impl.*.*(..))" id="allMethod"/>
      <aop:advisor advice-ref="txAdvice" pointcut-ref="allMethod"/>
     </aop:config>现在改为:  <!-- 配置事务需要应用到哪些类的哪些方法 -->
     <aop:config>
      <aop:pointcut expression="execution(* org.wrg.service.impl.*.*(..)) or execution(* org.wrg.dao*.*(..))" id="allMethod"/>
      <aop:advisor advice-ref="txAdvice" pointcut-ref="allMethod"/>
     </aop:config>事务还是可以正常