※ Using the methods and principles of ※ PageHelper

※ 1 ※ Using the methods and principles

※ set paging parameters in the service method call dao in: PageHelper.startPage (page, size), paging parameters will be set up in a ThreadLocal
PageHelper carried out before the implementation of sql mybatis interception, remove the paging parameters from ThreadLocal, modify the sql statement currently executing, add paging
sql. The last execution paging sql sql statement added, to achieve paging query.

Guess you like

Origin www.cnblogs.com/zhuo-zui/p/11433601.html