public MessageBean modiCertificateState(String data, Integer state,String remark) {
DefaultTransactionDefinition def = new DefaultTransactionDefinition();
TransactionStatus transactionStatus = transactionManager.getTransaction(def);
transactionManager.rollback(transactionStatus);
return null;
}
org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only
怎么会这样???