In spring boot, when timestamp is output, it will be automatically formatted as a string, how to set not to format automatically

spring boot automatically formats attributes of time type as string (String), when controller outputs an object as @ ResponseBody. I don"t want to do this. I want to calculate time at the front end, so I want spring to output the properties of time type directly to a timestamp (int type), and then handle it itself at the front end.

I don"t know how to set up spring-boot.

Mar.18,2021

if you add ResponseBody, it must be encapsulated into a json string, but there is a doubt that the timestamp of the string obtained at the front end can be parsed into human able time

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bedff9-54820.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bedff9-54820.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?