分页插件pagehelper
1、配置环境 maven依赖 1 2 3 4 5 6 7 8 9 10 11 <!--分页pagehelper--> < dependency > < groupId >com.github.pagehelper</ groupId > < artifactId >pagehelper</ artifactId > < version >5.1.4</ version > </ dependency > < dependency > < groupId >com.github.jsqlparser</ groupId > < artifactId >jsqlparser</ artifactId > < version >1.0</ version > </ dependency > 在mybatis配置文件中添加 <plugins> ,(configuration报错 写其它配置下面) 1 2 3 4 5 6 7 8 9 10 < configuration > <!-- 批量设置类的别名 --> < typeAliases > < package name="com.wanglz.pojo"/> </ typeAliases > <!--PageHelper分页--> < plugins > < plugin interceptor="com.github