SSM整合PageHepler,发现PageInfo为空

阅读 14

2022-04-13

解决pageInfo为空:
    pom依赖里pom文件pagehelper版本太低改为5.1.4
    修改mybatis-config配置文件
 

pagehelper插件5.0以上版本
        <!--分页插件 5.0 版本和 4.2.x 实现完全不同,否则会报错-->
        <!--5.0用的类是com.github.pagehelper.PageInterceptor-->
        <!--5.0以下用的是com.github.pagehelper.PageHelper-->
<plugins>
        <plugin interceptor="com.github.pagehelper.PageInterceptor">
        </plugin>
 </plugins>

精彩评论(0)

0 0 举报