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로 바꿔준다.
'Spring Boot' 카테고리의 다른 글
Spring boot JSP 설정 (0) | 2020.08.17 |
---|---|
Spring Boot JDBC logging (0) | 2020.08.17 |
Spring Boot - Thymeleaf 설정 (0) | 2020.04.17 |