javax.persistence.TransactionRequiredException: Executing an update/delete q 解决: 在方法上加@Transactional(rollbackFor = Exception.class)注解