其他分享
首页 > 其他分享> > IDEA+Maven SSM项目使用pagehelper分页插件--PageHelper.startPage()不起作用(耗费我2个小时的BUG)

IDEA+Maven SSM项目使用pagehelper分页插件--PageHelper.startPage()不起作用(耗费我2个小时的BUG)

作者:互联网

正常别人的配置就是在pom.xml加依赖
image
然后配置mybatis-config.xml
image
这样就可以直接用了
image
BUT!!!

我的PageHelper.startPage()方法却不起作用,无论怎么改都是查询的所有数据。查了n个网站基本全都是上面那一套,终于,在n+1次之后终于让我运行起来了!!!

那就是 还需要在spring配置文件中加入如下配置
image
里面的参数还不甚了解,但是问题终于是解决了。

参考博客链接:https://www.freesion.com/article/89821153303/

标签:xml,插件,--,配置,PageHelper,SSM,不起作用,startPage,终于
来源: https://www.cnblogs.com/upsblogs/p/16366916.html