SpringBoot
yongge2008
这个作者很懒,什么都没留下…
展开
-
SpringBoot中Spring JPA和Mybatis整合及多数据库主从数据源配置
Spring JPA和Mybatis整合,首先添加必要的依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <...原创 2019-01-16 18:00:40 · 919 阅读 · 0 评论 -
整合JPA Entity和Mybatis Model
我们单独使用SpringJPA和Mybatis时,可以分别使用Eclipse的Data Source Explorer和Mybatis Generator 生成实体代码,但是整合后每个方案都生成一套未免太啰嗦,那么怎么整合进一套呢 首先下载Mybatis Generator最新版源码,然后在plugins包目录添加一个插件,插件代码 public class JpaAnnotationPl...原创 2019-01-16 18:25:12 · 504 阅读 · 0 评论