@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); }
@RequestMapping("/save") public void save(IndexPage indexPage, HttpServletResponse response) { String message = indexPageBusiness.save(indexPage); sendSuccessMessage(response, message); }