示例#1
0
 @RequestMapping(value = "/delete")
 public String deleteArticle(Model model, Article article) {
   articleService.deleteArticle(article.getId());
   List<Article> list = articleService.getAtriclesByMybatis();
   model.addAttribute("list", list);
   return "/page/article/listArticles";
 }
示例#2
0
 @RequestMapping(value = "/listArticles")
 public String listArticles(Model model) {
   List<Article> list = articleService.getAtriclesByMybatis();
   model.addAttribute("list", list);
   return "/page/article/listArticles";
 }