문제

I have a class in which some of the fields may be null. I want to ignore such fields in my csv .Looking for functionality similar to @JsonInclude(value = Include.NON_NULL) in jackson. Null fields column header should also not come in CSV

도움이 되었습니까?

해결책

It's up to you to (programatically) define the header, and which columns are written - Super CSV doesn't just automatically marshal an object to CSV for you (like Jackson does for JSON).

You should check out the documentation on the website - in particular the section on partial writing.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top