@Transactionl注解
摘要:
spring 事务注解默认遇到throw new RuntimeException("...");会回滚需要捕获的throw new Exception("...");不会回滚// 指定回滚@Transactional(rollbackFor=Exception.class) public ... 阅读全文
posted @ 2015-03-28 18:04 nevergiveupzeng 阅读(1060) 评论(0) 推荐(1) 编辑