You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
모든 클래스와 필드들을 확인해봤으나 이상이 없었고 잘되던게 gradle update 후 갑자기 안됬음 No property named "friendChatUser.name" exists in source parameter(s). Type "ChatFriend" has no properties.
Lombok은 컴파일 시점에 코드를 생성하며, 이로 인해 IDE나 다른 도구가 생성된 코드를 인식하지 못하는 경우가 있습니다. MapStruct도 이러한 도구 중 하나로, Lombok에 의해 생성된 getter/setter 메소드를 인식하지 못하면 이를 문제로 인식할 수 있습니다.
이 문제를 해결하기 위한 한 가지 방법은 Lombok과 MapStruct의 동작 순서를 조정하는 것입니다. 예를 들어, Lombok이 먼저 동작하도록 설정하여 Lombok에 의해 생성된 코드가 MapStruct에 의해 사용될 수 있도록 할 수 있습니다.
현상 확인
mapstruct를 빌드 하면 아래와 같은 이슈가 발생한다.
모든 클래스와 필드들을 확인해봤으나 이상이 없었고 잘되던게 gradle update 후 갑자기 안됬음
No property named "friendChatUser.name" exists in source parameter(s). Type "ChatFriend" has no properties.
아래는 이미지
관련 레퍼런스
Ordering of mapstruct and lombok gradle annotationProcessor seems to matter mapstruct/mapstruct#1581
조치
The text was updated successfully, but these errors were encountered: