@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"; }
@RequestMapping(value = "/listArticles") public String listArticles(Model model) { List<Article> list = articleService.getAtriclesByMybatis(); model.addAttribute("list", list); return "/page/article/listArticles"; }