controller的部分:
@Controller
@RequestMapping("/ContactsFrameIndex")
public class ContactsFrameControl {
@Resource
private ContactsFrameServiceImpl contactsFrameServiceImpl;
/**
* 主界面
*
*/
@RequestMapping("/index")
public String getAllContactsList(HttpServletRequest request ,HttpServletResponse response,Model model,String page1){
int pageSize = 3;
//记录总条数;
int total = contactsFrameServiceImpl.total();
System.out.println(total);
if((total % pageSize)==0){
int totalPage = total/pageSize;
model.addAttribute("totalPage",totalPage);
}else{
int totalPage = total/pageSize +1;
model.addAttribute(