| 类 | 说明 |
|---|---|
| BaseResult<T> | |
| CommonResult<T> |
Common Result
|
| EnumDictionary | |
| FileInfo | |
| PageVo<T> |
主要用于前端内容展示分页,分页链接由后台输出
PageVo根据自定义的url直接生成链接,messageFormat占位替换生成页码
USAGE:
RequestMapping(value="news/p{pageIndex}.htm",method = RequestMethod.GET)
public String list(@PathVariable int pageIndex,Model model){
try{
PageVo pageDto = this.newsService.getPage(0,pageIndex,12);
pageDto.setUrl("news/p{0}.htm");
model.addAttribute("list",pageDto);
}catch (Exception e){
return "";
}
return "forward:/news.jsp";
}
|
Copyright © 2021. All rights reserved.