最好用的mybatis分页插件,扩展简单强大,暂时只支持mysql
License
zhiguofa/mybatis-plugin-pager
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
#maven依赖 #dao接口增加page参数即可 public interface PscanDao { List<User> getUserList(Page page); } #mapper文件,不需要指定limit关键字,插件根据dao接口中的page参数自动添加分页查询参数 select u.username, u.email from user u where u.age > #{age} #mybatis 配置文件 <plugins> <plugin interceptor="cn.sskxyz.mybatis.PagePlugin"></plugin> </plugins>
About
最好用的mybatis分页插件,扩展简单强大,暂时只支持mysql
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published