Spring_data 처리4(글 삭제)
# Mapper 설정 BoardMapper.xml SELECT SEQ, TITLE, CONTENT, WRITER, TO_CHAR(REGDATE, 'YYYY-MM-DD') AS REGDATE, VIEWCNT FROMINTERN_BOARD_TBL INSERT INTO INTERN_BOARD_TBL VALUES( BOARD_SEQ.NEXTVAL, #{title}, #{content}, #{writer}, DEFAULT, DEFAULT) SELECT SEQ, TITLE, CONTENT, WRITER, TO_CHAR(REGDATE, 'YYYY-MM-DD') AS REGDATE, VIEWCNT FROMINTERN_BOARD_TBL WHERESEQ = #{seq} DELETE FROMINTERN_BOARD_TBL W..
Spring_data 처리2(글 작성)
# JSP Form 태그 변경 register.jsp Title Content Writer Submit Submit CF) @RequestParam(value="title") String title > String title 도 가능 통해서 이렇게 받아올 수 있음, 3개를 던져주므로 Map을 통해 Mybatis에 던져주기 # Mapper 추가 BoardMapper.xml SELECT SEQ, TITLE, CONTENT, WRITER, TO_CHAR(REGDATE, 'YYYY-MM-DD') AS REGDATE, VIEWCNT FROMINTERN_BOARD_TBL INSERT INTO INTERN_BOARD_TBL VALUES( BOARD_SEQ.NEXTVAL, #{title}, #{content}, #{w..