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(
最后
以上就是霸气黄蜂最近收集整理的关于freemarker 数据做加减计算的全部内容,更多相关freemarker内容请搜索靠谱客的其他文章。
发表评论 取消回复