在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:mybatis-plugin-pager开源软件地址:https://gitee.com/zhiguofa/mybatis-plugin-pager开源软件介绍:#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> |
请发表评论