分页查询page属性异常

如果说,你要分页查询的这个对象里面有page属性,那么页面传过来的page就会优先封装到模型驱动这个对象的这个属性里,遇到这种情况最简单的办法就是手动亲自把page封装到pagebean中

public String pageQuery(){
		String page = model.getPage();
		pageBean.setCurrentPage(Integer.parseInt(page));
		service.pageQuery(pageBean);
		this.java2Json(pageBean, new String[]{"parentFunction","roles","children"});
		return NONE;
	}


原文地址:https://www.cnblogs.com/fengnan/p/9311947.html