当前位置:网站首页>Problem summary file
Problem summary file
2022-07-28 10:19:00 【My fruit flavor】
Question 1 : Use SpringBoot How to change the time format
Use @JsonFormat annotation
public User {
...
@JsonFormat(pattern = "yyyy-MM-dd" timezone="GMT+8")
private Date createTime;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime updateTime;
...
}
JsonFormatAnnotations can help us convert dates into time strings in a specified formatpatternProperty specifies the time format ,timezoneProperty specifies the time zoneLocalDateTimeThere will be no time zone problem ;DateThere will be time zone problems , Need to usetimezoneMake a designation
边栏推荐
- Summary of key points of bank entry examination
- 指令系统超全知识点详解
- Kubernetes
- ES (8.1) certification topic
- 02.1.2.逻辑类型 bool
- 【云驻共创】华为云:MetaStudio数字内容生产线,让虚拟世界与现实世界无缝融合
- 10 minute quick start EVs [play Huawei cloud]
- Context values traps and how to avoid or mitigate these traps in go
- 吴雄昂遭Arm罢免内幕:建私人投资公司,损害了股东利益?
- 传全球半导体设备巨头或将于上海建合资工厂!
猜你喜欢

2022 uni app parsing token standard - use jsrsasign - climb the pit

Why should I take the first-class constructor examination? How high is the gold content of the first-class Constructor Certificate?

SuperMap iServer发布管理以及调用地图服务

ES (8.1) certification topic

我用小程序容器让移动研发效率提升了5倍!

Arthas tutorial

利用正则表达式从文件路径中匹配文件名

C语言 二级指针详解及示例代码

Performance test of API gateway APIs IX in Google cloud T2a and T2D

什么样的知识付费系统功能,更有利于平台与讲师发展?
随机推荐
ES (8.1) certification topic
QT | some summaries of signals and slots
Arthas tutorial
问题总结档案
a different object with the same identifier value was already associated with the session
漏洞分析丨HEVD-0x8.IntegerOverflow[win7x86]
银行入职考试要点汇总
12、双指针——合并两个有序链表
UEditor V1.4.3控制文件压缩
PHP生成二维码(学习)
Talk about the problem of preventing others from debugging websites through console based on JS implementation
Leetcode -- minimum number of rotation array
10. The penultimate node in the linked list
PL/SQL server语法详解
Thinking and summary of technical personnel | R & D Efficiency
头文件库文件
Etcd (highly available kV database)
安装gmp
C语言 二级指针详解及示例代码
16、字符串反转