Mybatis PageHelper不起作用修改

Mybatis PageHelper不起作用修改

刚接手一个项目,看框架过程发现项目中的分页还是原始的手写方式,这样的效率太低了,然后引入了mybatis的分页插件PageHelper,但是测试后一直不起作用,最终经过一番耐心查找后发现是引入的pagehelper的问题

原式的引入方式

image-1 Mybatis PageHelper不起作用修改

由于项目中用的是mybatis-spring-boot-starter,如下

image-2 Mybatis PageHelper不起作用修改

所以对应的pagehelper也应该是一样的,替换成如下的引入方式,测试项目运行ok

image Mybatis PageHelper不起作用修改

5 COMMENTS

i
iGlYjhVgUX

LlqURmCarxXObJhi

i
iGlYjhVgUX

gwuWNbsdjCFKltX

b
buy targeted instagram likes

you are really a good webmaster. The web site loading velocity is amazing.
It sort of feels that you’re doing any distinctive
trick. Furthermore, The contents are masterpiece.

you have performed a great task on this matter!

L
LTMvUcahkCKWOX

qBgiOjUPwSA

T
Twicsy

It’s not my first time to visit this web page, i am browsing this site
dailly and obtain nice information from here daily.