数据库事务控制注解说明

关于事务控制的注解:

// @Transactional(isolation = Isolation.REPEATABLE_READ, rollbackForClassName = {"Exception.class"})
@Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.REPEATABLE_READ, timeout = 36000, rollbackFor = Exception.class)

 

posted @ 2019-03-12 11:20  习惯沉淀  阅读(428)  评论(0编辑  收藏  举报