Tagged articles
110 articles
Page 2 of 2
Java Architecture Diary
Java Architecture Diary
Aug 27, 2020 · Information Security

How to Mitigate the Critical Jackson‑databind CVE‑2020‑24616 Vulnerability in Spring Boot

This article explains the high‑severity CVE‑2020‑24616 deserialization flaw in jackson‑databind, identifies affected Jackson and Spring Boot versions, and provides Maven‑based remediation steps such as version pinning, dependency exclusions, and dependencyManagement configuration to prevent remote code execution.

CVE-2020-24616DeserializationJackson
0 likes · 4 min read
How to Mitigate the Critical Jackson‑databind CVE‑2020‑24616 Vulnerability in Spring Boot
Java Backend Technology
Java Backend Technology
Jun 6, 2020 · Backend Development

Is FastJson Really Faster? Benchmark vs Jackson and Gson

This article examines FastJson’s claim of speed by benchmarking it against Jackson and Gson, analyzes test results, discusses its popularity, highlights critical bugs in its timestamp handling, and ultimately recommends abandoning FastJson in favor of more widely adopted JSON libraries.

GsonJacksonfastjson
0 likes · 8 min read
Is FastJson Really Faster? Benchmark vs Jackson and Gson
Top Architect
Top Architect
May 6, 2020 · Backend Development

FastJson: Speed Claims, Popularity, and Why It Should Be Abandoned

The article examines Alibaba's FastJson library, presenting performance tests against Jackson and Gson, revealing modest speed gains, low adoption in Maven, numerous unresolved issues, and ultimately recommending developers switch to Jackson for JSON processing in Java projects.

GsonJSONJackson
0 likes · 5 min read
FastJson: Speed Claims, Popularity, and Why It Should Be Abandoned
Java Captain
Java Captain
Jun 27, 2019 · Backend Development

Performance Benchmark of Common Java JSON Libraries Using JMH

Using JMH, this article benchmarks the serialization and deserialization performance of four popular Java JSON libraries—Gson, Fastjson, Jackson, and Json-lib—by testing various scenarios with a complex Person model, analyzing results, and providing guidance on selecting the most suitable library for high‑performance applications.

GsonJMHJSON
0 likes · 13 min read
Performance Benchmark of Common Java JSON Libraries Using JMH
Programmer DD
Programmer DD
Sep 29, 2018 · Backend Development

How to Handle XML Requests in Spring Boot Controllers with Message Converters

Learn how to quickly wrap XML requests into objects and return XML responses in Spring Boot by leveraging the HttpMessageConverter mechanism, adding the Jackson XML message converter, defining POJOs with Jackson annotations, and creating controller endpoints that consume and produce XML.

JacksonMessage ConverterSpring Boot
0 likes · 6 min read
How to Handle XML Requests in Spring Boot Controllers with Message Converters
Programmer DD
Programmer DD
Mar 13, 2018 · Backend Development

Why Feign Fails with LocalDate/LocalDateTime and How to Fix It

When a Spring Cloud Feign client sends a request containing Java 8 date/time types like LocalDate, LocalTime, or LocalDateTime, the response may trigger JSON parse errors because Spring MVC serializes them as arrays, but Feign expects a proper object, which can be resolved by adding Jackson's JSR‑310 module and configuring the ObjectMapper.

JSONJacksonJavaTimeModule
0 likes · 6 min read
Why Feign Fails with LocalDate/LocalDateTime and How to Fix It
Qunar Tech Salon
Qunar Tech Salon
Jan 16, 2015 · Fundamentals

Best Practices for Null‑Safe Programming in Java

To avoid NullPointerException in Java, use string literals with equals, prefer String.valueOf over toString, employ null‑safe libraries like Apache Commons StringUtils, return empty collections instead of null, annotate with @NotNull/@Nullable, prevent unnecessary autoboxing, define sensible defaults, and use Jackson's path method for safe JSON navigation.

Apache CommonsJacksondefensive programming
0 likes · 5 min read
Best Practices for Null‑Safe Programming in Java