摘要: springboot开启事务很简单,只需要一个注解@Transactional 就可以了。因为在springboot中已经默认对jpa、jdbc、mybatis开启了事务。这里以spring整合mybatis为例讲解声明式事务 数据源配置 这里的配置都基于前几讲的配置,之前spring整合mybat 阅读全文
posted @ 2018-04-24 09:06 霸王猿 阅读(423) 评论(0) 推荐(0) 编辑