工具
-
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类中