Lombok 사용 시 boolean 필드 Getter 문제 해결하기Spring Boot 프로젝트에서 Lombok의 @Getter를 사용하면 자동으로 getter 메서드가 생성된다. 하지만 boolean 타입 필드에서는 예상과 다르게 동작할 수 있다.문제 상황@Getter@AllArgsConstructor@NoArgsConstructor@Builderpublic class MedicineCreateRequestDTO { private boolean isPrescribed;}위처럼 boolean 타입 필드에 대해 @Getter를 적용했고서비스에서requestDto.isPrescribed()작성하고 postman에서 json형식으로"isPrescribed": true,이렇게 작성하여 호출하면 isPres..