事务异常,能帮我看看是什么原因么?
PROPAGATION_REQUIRED,ISOLATION_DEFAULT,-java.lang.Exception
保存的时候出现了上述的异常,以下是我的事务配置信息:
———————————————————————————————————————————————————————
<tx:advice id="txAdvice">
<tx:attributes>
<tx:method name="get*" read-only="true"/>
<tx:method name="load*" read-only="true"/>
<tx:method name="find*" read-only="true"/>
<tx:method name="pagedQuery*" read-only="true"/>
<tx:method name="*" propagation="REQUIRED"/>
</tx:attributes>
</tx:advice>
<!-- 以AspectJ方式 定义 AOP -->
<aop:config proxy-target-class="true">
<aop:advisor pointcut="execution(* com.netherland.survey.core.services..*.*(..))" advice-ref="txAdvice"/>
<aop:advisor pointcut="execution(* com.netherland.common.security.manager.*Manager.*(..))" advice-ref="txAdvice"/>
</aop:config>
——————————————————————————————————————————————————————
路径是对的,我是遍历一个list,然后对其元素(对象)进行保存。以前一直没出现过问题,今天突然这样了,不能保存了,即不能更新到数据中了。