의존성 추가(Gradle) compile group: 'org.modelmapper', name: 'modelmapper', version: '2.3.5' ModelMapper 빈 등록 @Configuration public class AppConfig { @Bean public ModelMapper modelMapper(){ return new ModelMapper(); } } ModelMapper 자동 매핑 private final ModelMapper modelMapper; public List getAllMembers(){ return memberRepository.findAll() .stream() .map(member -> modelMapper.map(member, MemberDto.class..