Mybatis
过客璇璇
有眼界才有境界,有实力才有魅力,有思路才有出路,有作为才有地位。政从正来,智从知来,财从才来,位从为来!
展开
-
Mybatis分页
本文参考文章:https://www.cnblogs.com/aeolian/p/9229149.html 实现了不错的效果 数组分页 查询出全部数据,然后再list中截取需要的部分。 mybatis接口 List<Student> queryStudentsByArray(); xml配置文件 <select id="queryStudentsByArray"...原创 2019-10-24 16:10:33 · 204 阅读 · 0 评论 -
SpringBoot Mybatis项目搭建
思路:使用STS开发工具,引入相关依赖包,在application.properties中配置相关信息,编写实体层、服务层、控制层相关代码 一.STS新建SpringBoot项目 二.在pom.xml中引入相关依赖 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2...原创 2019-10-24 15:37:10 · 335 阅读 · 0 评论