PageHelper automatically added pagination issue

If there pageNum and vo pageSize plus the configuration file supportMethodsArguments = true, even if it is not used PageHelper.startPage (pageNum, PageSize) will be sorted automatically.

The problem in supportMethodsArguments this parameter, the default is false, because we did not know the meaning of this parameter, set to give true. Here you can solve this problem in two ways, first delete supportMethodsArguments configuration (not enabled), this method must call PageHelper.startPage paging method, do not give a second pageSize pageNum and set the default value or not for this variable name two, so PageHelper parsed is empty will not be paged. Recommend the first, because the second page hidden deeper, unfamiliar people it is difficult to identify the problem.

Reprinted from: https://blog.csdn.net/weixin_33772645/article/details/87051330

Guess you like

Origin www.cnblogs.com/bfyq/p/11270706.html