spring怎样设置事务超时

2025-02-25 21:33:31
推荐回答(1个)
回答1:

看配置,拦截前缀save方法中在遇到SQLException时才回滚,程序抛出是运行时异常RuntimeException;SQLException是check Exception,RuntimeException是unchecked Exception;本身Spring默认对unchecked Exception 回滚;要么改配置文件,要么程...