.setFieldMatchingEnabled(true)
ModelMapper 빈을 등록할 때 설정해주자.
Field matching은 필드를 매칭시킬 수 있는지를 나타낸다.
기본값은 disabled로 설정되어있다.
참고 👇
http://modelmapper.org/user-manual/configuration/
ModelMapper - Configuration
Configuration ModelMapper uses a set of conventions and configuration to determine which source and destination properties match each other. Available configuration, along with default values, is described below: Setting Description Default Value Ambiguity
modelmapper.org
반응형
'Framework > Spring Boot' 카테고리의 다른 글
Spring Security (0) | 2022.10.06 |
---|---|
OAuth2User (0) | 2022.10.06 |
ModelMapper Matching Strategy 정리 (0) | 2022.10.05 |
[Spring Security] rememberMe 설정 (0) | 2022.09.19 |
ModelMapper 수동으로 필드명 매핑 설정 (0) | 2022.09.12 |