1.目录结构:
2.前端页面引用:
这里想说的是引用的默认出发点是在/static/下了
3.后端:
使用了mybatis分页插件
@RequestMapping("list") public String getList(Model model,HttpSession session, @RequestParam(value = "pageNum",defaultValue = "1") int pageNum, @RequestParam(value = "pageSize",defaultValue = "10") int pageSize){ //权限类判断这里忽略掉 PageInfo result = productService.getProductList(pageNum,pageSize); model.addAttribute("pageInfo",result); model.addAttribute("productList",result.getList()); return "charts";
原文地址:https://www.cnblogs.com/lyjblogg/p/12038454.html
时间: 2024-10-27 08:20:46