공부
[Java] @JsonProperty show `is` prefix
승가비
2020. 8. 10. 22:28
728x90
public class MyResponse implements Serializable {
private boolean isSuccess;
@JsonProperty(value="isSuccess")
public boolean isSuccess() {
return isSuccess;
}
public void setSuccess(boolean isSuccess) {
this.isSuccess = isSuccess;
}
}
https://stackoverflow.com/questions/32270422/jackson-renames-primitive-boolean-field-by-removing-is
Jackson renames primitive boolean field by removing 'is'
This might be a duplicate. But I cannot find a solution to my Problem. I have a class public class MyResponse implements Serializable { private boolean isSuccess; public boolean isSucce...
stackoverflow.com
728x90