mybatis paging plugin pageHelper principle

After reading the source code of pageHelper, simply record the principle:
the principle is to first use ThreadLocal to obtain paging information (current page, total number of pages, etc.),
then execute the PageHelper interceptor to obtain the sql, assemble the paging information into sql, and
finally execute sql Complete pagination.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327037341&siteId=291194637