Tag

Global Configuration

0 views collected around this technical thread.

macrozheng
macrozheng
Apr 16, 2020 · Backend Development

How to Simplify Date Formatting in Spring Boot: Global Config & @JsonFormat Tricks

This article shares practical techniques for handling date and time in Spring Boot projects, including the pitfalls of using SimpleDateFormat, the benefits of @JsonFormat, and two approaches to global configuration that streamline formatting for both java.util.Date and java.time types.

@JsonFormatBackend DevelopmentGlobal Configuration
0 likes · 9 min read
How to Simplify Date Formatting in Spring Boot: Global Config & @JsonFormat Tricks