@RequestMapping("/board") public String board(Model model) { logger.info("AdminController-home() 진입"); List<ArticleVO> articles = articleService.getAllList(); model.addAttribute("list", articles); return "admin/admin/board.tiles"; }
@RequestMapping("/write_notice") public void writeNotice(String title, String content) { article.setUsrSubject(title); article.setUsrContent(content); article.setUsrName("관리자"); articleService.write(article); }
@RequestMapping("/delete_writing") public void deleteWriting(String code) { articleService.delete(Integer.parseInt(code)); }