Application exception overridden by commit exception
ERROR TransactionInterceptor:307 - Application exception overridden by commit exception错误原因可能为:<span style="">Remember only unchecked exceptions cause rollbacks in spring transactions.What is happening is that you're catching the unchecked exception, converting it to a checked exception and then propogating it. The transaction manager does not rollback for RecordExistsException and thinks that your first transaction has succeded. Thats why it tries to save your child objects. You should annotate your service with <div style="margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px;"><div class="smallfont" style="">Code:
页:
[1]