DolphaGo/TIL

[Mapstruct] java: No property named "XXX" exists in source parameter(s). Did you mean "null"

Opened this issue · 0 comments

image

  • 우선 MapStruct는 private field를 direct로 바라보지 않는다.
  • getter와 setter를 가지고 필드를 파악한다.
  • 게터 세터가 있음에도 불구하고 위와 같은 에러가 해결되지 않았다.
  • 나는 롬복을 사용했는데, 롬복에 관한 이슈이다.
  • lombok -> mapstruct 순으로 implementation 순서를 뒤바꿔주면 된다.

image