随笔分类 -  spring

自己项目中的全注解事物配置
摘要:1 2 3 java:comp/env/jdbc/huixincrm 4 5 6 7 8 9 10 11 12 com.keertech.base.bean13 com.keertech.web.bean14 com.keertech.system.bean15 16 17 18 ... 阅读全文

posted @ 2014-03-18 10:52 看天空的星星 阅读(348) 评论(0) 推荐(0)

spring 事务注解@Transactional
摘要:默认遇到throw new RuntimeException("...");会回滚需要捕获的throw new Exception("...");不会回滚// 指定回滚@Transactional(rollbackFor=Exception.class)public void methodName() {// 不会回滚throw new Exception("...");}//指定不回滚@Transactional(noRollbackFor=Exception.class)public ItimDaoImpl getItemDaoI 阅读全文

posted @ 2014-03-07 13:55 看天空的星星 阅读(191) 评论(0) 推荐(0)

导航