我是靠谱客的博主 霸气黄蜂,这篇文章主要介绍freemarker 数据做加减计算,现在分享给大家,希望可以做个参考。

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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(124)

评论列表共有 0 条评论

立即
投稿
返回
顶部