Giter VIP home page Giter VIP logo

paging-spring-boot-starter's Introduction

paging-spring-boot-starter

使用方法

<dependency>
   <groupId>com.github.maojx0630</groupId>
   <artifactId>paging-spring-boot-starter</artifactId>
   <version>1.6</version>
</dependency>

开启分页方法

优先级从上到下 越靠上级别越高

  • 使用PageUtils.start开启分页
  • 传入PageAbelQuick对象(PageAbel已实现该接口,该对象可以通过手动传入参数构造,也可以通过实现PageAbelQuick接口的对象快速构造)多个时最靠前的参数生效
  • 开启EnablePage注解(非web情况下不可用)
    • 若设置pageSizeInt则会优先读取该数值
    • isEnablePageCount 为是否获取总数 默认开启
    • pageSize与pageNo为request中的参数名

获取分页信息

传入参数为mapper返回值

Page<T> page=PageUtils.get(List);

可根据自己需求进行定制化修改

默认支持mysql 若需支持其他类型 请实现 SqlCountAndPaging 接口并添加 Component 注解

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.