
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 · 976 阅读 · 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 · 553 阅读 · 0 评论