Annotation @ jsonformat is mainly the conversion of time format from background to foreground
Annotation @ dataformat is mainly the conversion of time format from front to back to background
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
private Date symstarttime;
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
private Date symendtime;
Read More:
- The time of the time database displayed by the front end is inconsistent
- How to receive localdatetime type in background
- The back end cannot receive the parameters passed by the front end
- Nginx front end and back end separation + service cluster reverse proxy
- CentOS solves the problem of modulenotfounderror when salt calls python3 script remotely, and solves the problem that PIP3 module cannot be shared by different users
- Hide print button when printing page in front end
- [Solved] Flowable Start Error: ClassCastException: java.time.LocalDateTime cannot be cast to java.lang.String
- How to get the current time in java time string
- Springboot time zone problem
- Front end Vue project operation error module build failed
- Decipher the evolutionary path of junior, middle and senior programmers (front end)
- What are the web front end technologies? What are the differences between cookie and session
- Front end project construction error unexpected character ‘@’ solution
- Record a front end error net:: err_ HTTP2_ PROTOCOL_ ERROR 200
- Front end project runtime prompts syntax error: typeerror: token.type.endswith is not a function solution
- The problem of “value error: zero length field name in format” in Python 2.6.6 of CentOS 6.9
- Nginx modifies the front end request size limit (413 request entity too large)
- Vs code solves the problem that latex does not display references and [?] is displayed in the text
- Android solves the gliding problem of EditText
- Syntax error: unexpected end of file problem [two solutions]