当前位置:网站首页>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
边栏推荐
- 14、双指针——盛最多水的容器
- 8、数组中出现次数超过一半的数字
- select如果不加order by子句,返回结果的顺序是不可靠的
- [jzof] 15 bits of 1 in binary
- Etcd(高可用KV数据库)
- [cloud based co creation] Huawei cloud: metastudio digital content production line, which seamlessly integrates the virtual world with the real world
- 【云驻共创】企业数字化转型,华为云咨询与你同行
- PL/SQL server语法详解
- 排序——快速排序(快慢指针实现)
- 13、哈希表——两个链表第一个公共节点
猜你喜欢

Choosing a supplier service system is the first step for large health industry enterprises to move towards digital transformation

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

5. Dynamic programming -- Fibonacci series

Skillfully use NGX_ Lua makes traffic grouping

14、双指针——盛最多水的容器

巧用ngx_lua做流量分组

定了!就在7月30日!

It's settled! On July 30!

语音聊天app——如何规范开发流程?

2022 uni app parsing token standard - use jsrsasign - climb the pit
随机推荐
数据库mysql基础
Voice chat app - how to standardize the development process?
Aqua Data Studio 18.5.0导出insert语句
双指针技巧
基于docker安装MySQL
指令系统超全知识点详解
select如果不加order by子句,返回结果的顺序是不可靠的
Go 内存模型 (2014年5月31日版本)
不登高山,不知天之高也;不临深溪,不知地之厚也
Choosing a supplier service system is the first step for large health industry enterprises to move towards digital transformation
Summary of key points of bank entry examination
pt-kill 查询中包含中文字符 导致工具失效的排查
Skillfully use NGX_ Lua makes traffic grouping
Performance test of API gateway APIs IX in Google cloud T2a and T2D
Redis设计规范
️雄关漫道真如铁,而今迈步从头越️
16、字符串反转
DBeaver的操作日志
9、删除链表中节点
14. Double pointer - the container that holds the most water