Tagged articles
5 articles
Page 1 of 1
Top Architect
Top Architect
Sep 5, 2024 · Backend Development

Fastjson DateFormat Priority and Circular Reference Issues: Debugging and Solutions

The article details a senior architect's investigation of Fastjson problems, including a date format priority bug that behaved differently on Windows and Linux due to an outdated library version, and a circular reference serialization issue resolved by disabling specific serializer features, while offering broader insights on version management and feature control.

CircularReferenceJavadateformat
0 likes · 13 min read
Fastjson DateFormat Priority and Circular Reference Issues: Debugging and Solutions
Java Backend Technology
Java Backend Technology
May 25, 2023 · Backend Development

Why FastJson’s Date Formatting Fails on Linux and How to Fix It

This article recounts the author's real‑world debugging of FastJson, covering unexpected date‑format priority issues on Linux, version mismatches, circular‑reference detection quirks, and practical tips such as disabling specific SerializerFeatures, while also reflecting on the library’s maintenance and migration to FastJson2.

circular referencedateformatfastjson
0 likes · 11 min read
Why FastJson’s Date Formatting Fails on Linux and How to Fix It
Selected Java Interview Questions
Selected Java Interview Questions
Oct 7, 2022 · Backend Development

Configuring Date Formatting in SpringBoot Applications

This article explains how to customize the date format returned by SpringBoot REST controllers using configuration files, Jackson annotations, JavaBean annotations, and global converters, covering both JSON serialization and form data binding with practical code examples.

JacksonSpringBootannotations
0 likes · 11 min read
Configuring Date Formatting in SpringBoot Applications
Java Architecture Diary
Java Architecture Diary
Nov 2, 2019 · Backend Development

Why SimpleDateFormat Is Not Thread‑Safe and How to Fix It Efficiently

This article explains why Java's SimpleDateFormat is not thread‑safe, demonstrates the resulting concurrency errors, and presents four practical solutions—including per‑call instantiation, ThreadLocal, Apache FastDateFormat, and Java 8's Instant with DateTimeFormatter—along with JMH benchmark results comparing their performance across JDK 8 and JDK 11.

SimpleDateFormatThreadLocaldateformat
0 likes · 7 min read
Why SimpleDateFormat Is Not Thread‑Safe and How to Fix It Efficiently