Lombok @Value with Jackson
You can use lombok @Value
annotation with Jackson, since Jackson 2.7 added support for ConstructorProperties
.
However you need to add @AllArgsConstructor
too when you use @Value
with @Builder
.
You can also Use @JsonDeserialize
but it's a little complated. Please refer below: