1. 참조 :
    1. https://github.com/kwj1270
    2. https://m.blog.naver.com/wwwkang8/220989381100
  2. Java ORM 설치
    1. Help -> eclipse Marketplace
    2. java orm 검색
    3. Java ORM Plugin for Eclipse 1.0 설치
    4. Java ORM Plugin for Eclipse 1.0 이 없는 경우
      1. https://sourceforge.net/projects/java-orm-plugin/ 에서 zip파일 다운로드
      2. \eclipse\dropins 폴더에 압축해제
      3. Eclipse 재실행
  3. pom.xml에 DBCP 라이브러리 추가
    1. <dependency> 코드 찾기 : http://search.maven.org 접속하여 mybatis 검색
  4. book-mapping.xml 파일 생성
    1. 프로젝트에서 마우스 오른쪽 버튼 클릭 -> New -> Other -> mybatis  검색후 book-mapping.xml 파일 생성(/src/main/resources/mappings 폴더에서는 생성되지 않음) 후 mappings 폴더로 이동

  5. Configuration.xml 파일 생성
    1. 프로젝트에서 마우스 오른쪽 버튼 클릭 -> New -> Other -> mybatis  검색후 mybatis-config.xml 파일 생성(/src/main/resources 폴더에서는 생성되지 않음) 후 resources 폴더로 이동

  6. SqlSession 객체 생성 : root-context.xml 에 추가
  7. BookDAOMyBatis 클래스 생성

     
error: Content is protected !!