application.properties中配置:
1 |
#时间戳统一转换 |
实体类:
1 |
private Timestamp createTime; |
第二种解决方案,是在实体类属性上添加注解:
1 |
(pattern = "yyyy-MM-dd HH:mm:ss") |
application.properties中配置:
1 |
#时间戳统一转换 |
实体类:
1 |
private Timestamp createTime; |
第二种解决方案,是在实体类属性上添加注解:
1 |
(pattern = "yyyy-MM-dd HH:mm:ss") |
近期评论