@Transactional(propagation=Propagation.REQUIRED)
public void insertEmploye(Employe emp) {
this.getSqlSession().insert("insert", emp);
this.updateDep(emp);
throw new Exception("My Exception");
}
@Transactional(propagation=Propagation.REQUIRES_NEW)
public void updateDep(Employe emp){
this.getSqlSession().update("updateCount", emp);
}
请问为什么updatedCount没有更新 Propagation.REQUIRES_NEW 不是启动新的事务 隔离外围的吗?