DB연동
-
[SPRING] SPRING 게시판 (3) - DB 연동2JAVA/SPRING 2020. 3. 11. 17:16
테이블 생성 패키지 생성 VO 생성 // com.ms.board.Vo/boardVo public class boardVo { private int bno; private String title; private String content; private int count; private String writer; private LocalDate createTime; private LocalDate editTIme; ... //Getter Setter 생략 } SQL 쿼리 작성 SELECT * FROM board DAO 생성 // Dao/BoardDao.java @Repository("BoardDao") public class BoardDao { @Inject private SqlSession sqlSess..