Spring Boot : MyBatis XML 파일 기본 설정

Spring Boot : MyBatis XML 파일 기본 설정

매퍼의 위치를 지정해준다.

xml 파일에 위 내용이 들어가야한다. namespace는 Mapper의 위치를 쓰면된다. 그 이후 BoardMapper.java 에 있는 메소드 명과 같이 id를 주면 된다.

https://mybatis.org/mybatis-3/ko/getting-started.html

자세한 사항은 공식문서 확인하기

from http://development-writing.tistory.com/375 by ccl(S) rewrite - 2021-12-28 20:01:12