如果打开自动提交,回滚会起作用吗?如果不是,那么关闭自动提交的含义是什么?
@Transactional(rollbackFor = {ManagerException.class})
public myMethod()....{
System.out.printLn(my_spring_stored_procedure.getDataSource()
.getConnection().getAutoCommit()) //true
....
try {
result = this.my_spring_stored_procedure.execute(params);
}catch(DataAccessException e){
throw new ManagerException(e);
}
}