개발블로그

  • 홈
  • 태그
  • 방명록

entitytodto 1

Model Mapper 사용법

maven repository 에서 model mapper 라이브러리 의존성을 추가 해줌 MainController에서 Bean으로 등록해줘야 사용할 수 있다. @SpringBootApplication public class HaedalApplication { public static void main(String[] args) { SpringApplication.run(HaedalApplication.class, args); } @Bean public ModelMapper modelMapper(){ return new ModelMapper(); } } ModelMapper는 Entity → Dto 로 변환할때 사용 되는데 그때 데이터를 변환하려면 Set 기능이 필요하기 때문에 Dto 에 @Setter ..

JAVA 2023.01.26
이전
1
다음
더보기
프로필사진

개발블로그

개발자 박응디 cjdrud123@naver.com

  • 분류 전체보기 (126)
    • JAVA (81)
    • Python & Django (6)
    • Server(설정 등) (5)
    • DB (2)
    • Git (4)
    • Swift (7)
    • React (6)
    • AWS (2)
    • CT (5)
    • 참고사항 (8)

Tag

JPA, APP, 설정, IOS, swift, java, React, test, code, DB, Spring, TDD, 개발, IP, entity, 개발자, python, query, testcode, mapping,

Calendar

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Copyright © Kakao Corp. All rights reserved.

티스토리툴바