SpringBoot处理时间

mac2026-03-11  4

使用对象传值会用到,使用map需要手动使用simpledateformat

坐标

<dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.45</version> </dependency>

实体类注解

@JsonFormat( pattern="yyyy-MM-dd HH:mm:ss") private Date xgsj; private String jlry; @JsonFormat( pattern="yyyy-MM-dd HH:mm:ss") private Date jlsj;

 

最新回复(0)