dao中多个方法调用事务回滚问题
<prop key="find*">PROPAGATION_REQUIRED,readOnly</prop> <prop key="list*">PROPAGATION_REQUIRED,readOnly</prop> <prop key="insert*">PROPAGATION_REQUIRED,-Exception</prop> <prop key="update*">PROPAGATION_REQUIRED,-Exception</prop>
dao只有在抛出RuntimeException才会自动回滚
1.在transactionAttributes中定义-Exception
2.在dao中抛出RuntimeException