摘要: (1)、添加依赖 (2)、编写实体类 (3)、配置Jpa (4)、编写一个Dao接口来操作实体类对应的数据表(Repository) 使用@PageableDefault注解控制默认的分页参数 相关测试及调用可以借鉴https://www.cnblogs.com/fanqisoft/p/103566 阅读全文
posted @ 2019-02-01 20:24 SpringCore 阅读(557) 评论(0) 推荐(0) 编辑
摘要: (1)、添加依赖 (2)、编写Mapper接口类 (3)、编写Mybatis配置文件 (4)、编写Mapper接口对应的Mapper配置文件 (5)、在配置文件中配置mybatis 阅读全文
posted @ 2019-02-01 20:06 SpringCore 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 详情可以参考Mybatis官方文档 http://www.mybatis.org/spring-boot-starter/mybatis-spring-boot-autoconfigure/ (1)、引入Mybatis针对SpringBoot制作的Starter依赖 (2)、配置Mybatis设置 阅读全文
posted @ 2019-02-01 19:03 SpringCore 阅读(604) 评论(0) 推荐(0) 编辑