PageHelper介绍

在mybatis的xml中,添加以下代码,表示开启PageHelper插件

<plugins>
        <plugin interceptor="com.github.pagehelper.PageInterceptor">             
    </plugin>
</plugins>    

通过分页插件指定分页参数

PageHelper.offsetPage(page.getStart(),page.getCount());

具体有时间自己再百度,留个坑

猜你喜欢

转载自blog.csdn.net/qq_16930699/article/details/85081118