示例#1
0
 @RequiresPermissions("cms:article:view")
 @RequestMapping(value = {"list", ""})
 public String list(
     Article article, HttpServletRequest request, HttpServletResponse response, Model model) {
   //		for (int i=0; i<10000000; i++){
   //			Article a = new Article();
   //			a.setCategory(new Category(article.getCategory().getId()));
   //			a.setTitle("测试测试测试测试测试测试测试测试"+a.getCategory().getId());
   //			a.setArticleData(new ArticleData());
   //			a.getArticleData().setContent(a.getTitle());
   //			articleService.save(a);
   //		}
   Page<Article> page =
       articleService.findPage(new Page<Article>(request, response), article, true);
   model.addAttribute("page", page);
   return "modules/cms/articleList";
 }