摘要: spring boot 对jpa的支持极为方便,基本上不需要作太多配置,只需要加上注解就能支持事务: @Controller @Transactional(rollbackOn = Exception.class) public class TestController { @Autowired TestRepository testRepository; @Reques... 阅读全文
posted @ 2018-04-28 15:13 Arli 阅读(4904) 评论(0) 推荐(0) 编辑