MyBatis - Spring 설정

TopOfTheHead·5일 전

MyBatis / JPA

목록 보기
10/10

Spring Boot MyBatis
MyBatisJPA를 혼용해서 사용
MyBatis Spring Boot Starter » 4.0.1

implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.5'

MyBatisN+1이 발생 X는 장점이 존재.

mybatis:
#  addMapper 과 같은 역할을 수행하여 도메인 정보를 등록
  type-aliases-package:
  configuration:
    map-underscore-to-camel-case: true
  mapper-locations: classpath:mappers/*.xml
profile
공부기록 블로그

0개의 댓글