Is there any way to assign default value when a property is missing in Json file while deserializing JSon using Jackson
@NoArgsConstructor
@Getter
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(NON_NULL)
@AllArgsConstructor
public class Sample {
private String value = "hai";
/* public Sample(String value) {
this.value = value; // when I remove @AllArgsConstructor and uncomment this constructor ,the default value is assigned if the property is missing in Json file
}*/
}