摘要:
/** * 获取列表总页数 */ public static int getListPages(List list,int pageNum,int pageSize ){ if (isNull(list)){ return 0; } BaseQuery baseQuery=new Bas... 阅读全文
posted @ 2018-08-28 13:18
Kero小柯
阅读(1058)
评论(0)
推荐(1)
摘要:
@Transactional spring 事务注解 1.简单开启事务管理 2.事务注解详解 默认遇到throw new RuntimeException(“…”);会回滚 需要捕获的throw new Exception(“…”);不会回滚 指定回滚 指定不回滚 如果有事务,那么加入事务,没有的话 阅读全文
posted @ 2018-08-28 09:45
Kero小柯
阅读(100492)
评论(5)
推荐(20)

浙公网安备 33010602011771号