0
点赞
收藏
分享

微信扫一扫

SSM整合PageHepler,发现PageInfo为空

村里搬砖的月野兔 2022-04-13 阅读 14
spring

解决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>

举报

相关推荐

SSM整合SSM

SSM整合

ssm整合

ssm框架整合

整合SSM框架

【Spring】SSM整合

精选ssm整合

0 条评论