티스토리 뷰

공부

[Java] @JsonProperty show `is` prefix

seunggabi 승가비 2020. 8. 10. 22:28
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

 

'공부' 카테고리의 다른 글

[Python] pretty print JSON  (0) 2020.08.10
[Presto] month ago  (0) 2020.08.10
[Java] @JsonProperty show `is` prefix  (0) 2020.08.10
[Sh] for  (0) 2020.08.10
[Sh] convert string to date  (0) 2020.08.10
[Java] round for percent  (0) 2020.08.10
댓글
댓글쓰기 폼