当前位置:网站首页>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
边栏推荐
猜你喜欢
![[learning notes] border and period](/img/a4/5493f7eefc7dd0e38bc9a53a92b87b.png)
[learning notes] border and period

ADVANCE.AI出海指南助力企业出海印尼,掌握东南亚市场半边天

Guangzhou metro line 14 xinshixu station is under construction, and residents in Baiyun District are about to start a double line transfer mode!

19. 删除链表的倒数第 N 个结点

5、动态规划---斐波那契数列

What kind of knowledge payment system functions are more conducive to the development of the platform and lecturers?

多线程与高并发(三)—— 源码解析 AQS 原理

15、判断二维数组中是否存在目标值

What are the highlights of B2B2C system? How to help jewelry enterprises build an omni channel multi merchant mall management system

Aqua Data Studio 18.5.0导出insert语句
随机推荐
Leetcode -- minimum number of rotation array
漏洞分析丨HEVD-0x8.IntegerOverflow[win7x86]
用K-means聚类分类不同行业的关税模型
Choosing a supplier service system is the first step for large health industry enterprises to move towards digital transformation
uni-app进阶之创建组件/原生渲染
语音聊天app——如何规范开发流程?
海量数据TopN问题
Prometheus 运维工具 Promtool (四)TSDB 功能
PHP生成二维码(学习)
[cloud co creation] enterprise digital transformation, Huawei cloud consulting is with you
软件设计师考前20问,注意啦!!
Qt | 信号和槽的一些总结
15. Judge whether the target value exists in the two-dimensional array
7. Dichotomy -- find a set of repeated or ordered but rotating arrays
4. Adjust the array order so that odd numbers precede even numbers
谈谈基于JS实现阻止别人调试通过控制台调试网站的问题
_HUGE and __IMP__HUGE in “math.h“
IE兼容性问题处理
MySQL架构原理
Kubernetes