전체 글 134

ch10.SpringMVC 종합 15.디테일

1) 2)ServiceImpl 3)BoardController //글 상세 @RequestMapping("/board/detail.do") public ModelAndView process(@RequestParam("num") int num) { //로그표시 if(log.isDebugEnabled()) { log.debug(" : " + num); } //조회수 증가 boardService.updateHit(num); BoardVO board = boardService.selectBoard(num); //뷰 이름 속성명 속성값 return new ModelAndView("boardView","board",board); } 4)board.xml 5)boardView.jsp ${board.title } 번호..

IT/Java Spring 2020.06.29