본문 바로가기

SPRING_SETTING

이제는 mybatis로 ...

1. pom.xml



2. context-datasource.xml



3. context-sqlmapper.xml



4. test-mapper.xml



5. TestMapper.java


맨날 만들던 DAO 클래스 대신 INTERFACE로 ...!!!

괜찮다~~~

거기다 간단한 것은 어노테이션으로...



6. TestMapperTest




자세한 mybatis 세팅은 http://mybatis.github.io/spring/ko/index.html ...