Example #1
0
  /**
   * 글 목록
   *
   * @param boardDomain
   * @param request
   * @return
   * @throws Exception
   */
  @RequestMapping(value = "/api" + Constants.URL_BOARD_LIST)
  public ModelAndView getBoardListView(BoardDomain boardDomain, HttpServletRequest request)
      throws Exception {
    ModelAndView mav = new ModelAndView("jsonView");

    int totSize = boardService.getTotBoardCount(boardDomain.getBoard_id());
    boardDomain.setPageSize(10);
    boardDomain.setTotalSize(totSize);

    List<BoardDomain> boardListDomain = boardService.getAllBoardList(boardDomain);

    mav.addObject("boardListDomain", boardListDomain);

    return mav;
  }