mybatis2 Mybatis 연동하기 0. Mybatis Plugin 다운받기 (사전준비) [Help] - [Eclipse Marketplace] 에서 Mybatipse 를 검색해 설치한다. 1. board-mapping.xml 만들기 src/main/resources 밑에 mappings 패키지를 하나 생성하고 [New] - [Other] - [Mybatis Mapper] 로 board-mapping.xml 을 만들어 준다. 내용은 다음과 같다. 자유롭게 sql문을 변경해 사용하면 된다. insert into board(seq, title, writer, content)value((select nvl(max(seq),0)+1 from board), #{title}, #{writer}, #{content})update voard set ti.. 2019. 3. 4. [Spring] ORM : MyBatis 연동 2 1234567891011121314151617181920212223242526 com.oracle ojdbc6 11.1.0.7.0 org.mybatis mybatis-spring 1.2.5 org.mybatis mybatis 3.3.1 org.springframework spring-jdbc 4.2.5.RELEASE org.aspectj aspectjweaver 1.8.9 cs pom.xml에 위 다섯개의 dependecies를 추가해준다. commons-dbcp의 1.4버전도 추가해준다. spring 폴더 아래에 Spring Bean Definition file인 rootContext.xml 을 만들어준다. 12345678910111213141516171819202122232425262728293031.. 2016. 4. 19. 이전 1 다음