1. Use limit paging:
Syntax:
1. select from user limit startIndex, pageSize;
2. select from user limit 3; There is only one parameter, representing 3 records starting from 0 to
complete paging using mybatis:
1. Interface
2. UserMapper. xml
3. Test
two. RowBounds pagination
no longer uses SQL to implement paging
1. Interface
2. UserMapper.xml
3. Test
three. Paging plug-in
Mybatis paging plug-in PageHelper
Mybatis009-pagination
Guess you like
Origin blog.51cto.com/12859164/2616100
Recommended
Ranking