예제 #1
0
 @RequestMapping("/query")
 public ModelAndView doQuery(HttpServletRequest request) throws Exception {
   Map<String, Object> context = getRootMap();
   IndexPage indexPage = indexPageBusiness.findById(null);
   context.put("indexPage", indexPage);
   return forword("blog/indexPage", context);
 }
예제 #2
0
 @RequestMapping("/save")
 public void save(IndexPage indexPage, HttpServletResponse response) {
   String message = indexPageBusiness.save(indexPage);
   sendSuccessMessage(response, message);
 }