工具
-
idea 2018.2
-
moven 3.6
-
mysql 5.5
-
JDK1.8
-
tomcat 8.0
一、导入jar包
在pom.xml中导入Pagehelper的jar包
在applicationContext.xml中添加数据库配置
二、添加page、size信息
在原本findall()的条件下,在userservice接口中添加参数int page,int size,在impl/userservice类中信息改为
usercontroller类中将显示信息设置成为page、size相同信息
aside.jsp添加传递参数
user-list.jsp中将首页、尾页、下一页、、、、、信息利用显示信息改参数即可
三、显示结果