throw new RuntimeException("====");会回滚
throw new Exception("====");不会回滚
回滚
@Transactional(rollbackFor=Exception.class)
public void aa() {
throw new Exception("===");
}
不回滚
@Transactional(noRollbackFor=Exception.class)
public void bb() {
throw new RuntimeException("====");
}