Spring Boot
Spring Boot Mybatis 설정
LightCY
2020. 8. 17. 17:10
application.yml
mybatis:
mapper-locations: mapper/**/*Mapper.xml
configuration:
map-underscore-to-camel-case: true
resource/mapper/
경로 아래에 xml 파일명이 Mapper로 끝나야한다.
map-underscore-to-camel-case: true
DB 필드명이 underscore로 되어있는경우 매핑할 시 CamelCase로 바꿔준다.