skip to Main Content

Formatting date in Apache JsonToStringStyle

I am implementing toString methods for my entities. There are a lot of fields of type ZonedDateTime. Unfortunately, it's converted to extremely long text representation: java.util.GregorianCalendar[ time=1545826815293, areFieldsSet=true, areAllFieldsSet=true, lenient=true, zone=sun.util.calendar.ZoneInfo [ id= "UTC", offset=0, dstSavings=0, useDaylight=false, transitions=0, lastRule=null ],…

VIEW QUESTION
Back To Top
Search