zoukankan      html  css  js  c++  java
  • pagehelper的使用

    探险了一处错误如果你使用SpringBoot写的,那么你需要引入以下依赖

        <!-- 分页插件-->
            <dependency>
                <groupId>com.github.pagehelper</groupId>
                <artifactId>pagehelper-spring-boot-starter</artifactId>
                <version>1.2.5</version>
            </dependency>

    只是单纯的goole插件不能使用在SpringBoot上面

    还有一个

     PageHelper.startPage(page,size);
            List<ClazzAndStu> studentList = studentMapper.selectByPrimaryKeyAndClass(student.getId());
    使用 PageHelper.startPage(page,size);后面一行一定是要跟sql查询 不能进行任何封装,一旦封装PageHelper中页面以及记录都不准确了

  • 相关阅读:
    基于Twisted的简单聊天室
    小学题的python实现
    初识Go(8)
    初识Go(7)
    初识Go(6)
    初识Go(5)
    初识Go(4)
    初识Go(3)
    初识Go(2)
    初识Go(1)
  • 原文地址:https://www.cnblogs.com/JpfBlog66/p/13950382.html
Copyright © 2011-2022 走看看