728x90
반응형
개발 도중 @JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class) 을 사용하여
isDeleted를 is_deleted로 보냈는데 날라가는 메세지를 보니 deleted로 날라갔다.
찾아보니 직렬화 하는 도중에 is가 제거된다..
@get:JsonProperty("is_deleted")
@param:JsonProperty("is_deleted")
var isDeleted: Boolean? = false,
를 사용하면 is를 사용할 수 있다.
참고로 요즘 개발할 때에는 형용사 앞에 is 붙이는 걸 선호하지 않는다. 어차피 값은 true 혹은 false일 것이기 떄문.
728x90
반응형
'web study > Spring' 카테고리의 다른 글
Intelij gradle 'compilejava' task (current target is 11) and 'compilekotlin' task (current target is 1.8) jvm target compatibility should be set to the same java version. error (0) | 2023.11.23 |
---|---|
Sppring IPFS CLIENT 싱글톤으로 사용시 주의점 (0) | 2023.11.16 |
JPA를 사용하는 이유와 특징 (0) | 2022.04.15 |
객체와 캡슐화에 대해서(객체지향적 코드를 짜는 이유) (0) | 2022.04.10 |
단일책임원칙 위배 트러블 슈팅 ApplicationEventPublisher와 EventListner (0) | 2022.04.05 |