Tagged articles

jackson

129 articles · Page 2 of 2
Top Architect
Top Architect
Jul 3, 2022 · Backend Development

Implementing Request and Response Encryption in Spring MVC Using ControllerAdvice

This article demonstrates how to secure GET and POST API endpoints in a Spring MVC application by encrypting request bodies and responses with AES, using custom ControllerAdvice classes, handling serialization issues with FastJSON and Jackson, and configuring ObjectMapper for proper date and enum formatting.

@ControllerAdviceAESEncryption
0 likes · 15 min read
Implementing Request and Response Encryption in Spring MVC Using ControllerAdvice
Java High-Performance Architecture
Java High-Performance Architecture
Jul 3, 2022 · Backend Development

Securing Spring Boot APIs with Request/Response Encryption via ControllerAdvice

This article walks through implementing symmetric request and response encryption for Spring Boot APIs—covering requirements, data models, controller examples, debugging serialization issues, and using ControllerAdvice with Jackson to ensure encrypted payloads remain compatible across Android, iOS, and H5 clients.

@ControllerAdviceAESAPI Encryption
0 likes · 13 min read
Securing Spring Boot APIs with Request/Response Encryption via ControllerAdvice
Code Ape Tech Column
Code Ape Tech Column
Jun 21, 2022 · Information Security

Implementing Data Desensitization with Custom Jackson Annotations in Java

This article explains how to mask sensitive fields such as ID numbers, phone numbers, and addresses in Java APIs by creating a custom @Sensitive annotation, defining masking strategies, implementing a Jackson serializer, and testing the solution with a Spring REST controller, providing complete code examples and sample output.

AnnotationSpringbackend
0 likes · 6 min read
Implementing Data Desensitization with Custom Jackson Annotations in Java
IT Xianyu
IT Xianyu
Apr 18, 2022 · Backend Development

Global Date and Time Conversion in Spring Boot 2.x: Custom Converters, Jackson Configuration, and Parameter Binding

This article explains how to globally handle LocalDate, LocalDateTime, and LocalTime parameters in Spring Boot 2.x by creating custom Converter beans, configuring Jackson's ObjectMapper, using @DateTimeFormat, ControllerAdvice, and understanding the underlying parameter resolution mechanisms to avoid common pitfalls such as lambda‑based converter registration failures.

ConverterMVCSpring Boot
0 likes · 16 min read
Global Date and Time Conversion in Spring Boot 2.x: Custom Converters, Jackson Configuration, and Parameter Binding
Top Architect
Top Architect
Apr 15, 2022 · Backend Development

Global Date and Time Conversion in Spring Boot: Custom Converters, Jackson Configuration, and Parameter Binding

This article explains how to globally configure date and time handling in Spring Boot 2.x, covering custom Converter beans for LocalDate, LocalDateTime, and LocalTime, Jackson JSON serialization settings, @InitBinder usage, and common pitfalls such as lambda expressions and parameter binding.

Date ConversionJava 8 TimeMVC
0 likes · 18 min read
Global Date and Time Conversion in Spring Boot: Custom Converters, Jackson Configuration, and Parameter Binding
macrozheng
macrozheng
Feb 9, 2022 · Backend Development

Beyond @Value: 5 Powerful Ways to Read YAML in Spring Boot

This article demonstrates five practical techniques for reading YAML configuration files in Spring Boot—including Environment, YamlPropertiesFactoryBean, custom listeners, SnakeYml, and Jackson—providing code examples, usage details, and tips for handling defaults and profile activation.

SnakeYmlSpring BootYamlPropertiesFactoryBean
0 likes · 14 min read
Beyond @Value: 5 Powerful Ways to Read YAML in Spring Boot
Selected Java Interview Questions
Selected Java Interview Questions
Dec 18, 2021 · Backend Development

Deep Copy in Java: Multiple Implementation Methods

This article explains the difference between shallow and deep copying in Java and provides five practical techniques—including constructor copying, overriding clone(), Apache Commons Lang serialization, Gson serialization, and Jackson serialization—complete with code examples and test cases to demonstrate each approach.

Gsonclonedeep-copy
0 likes · 8 min read
Deep Copy in Java: Multiple Implementation Methods
Code Ape Tech Column
Code Ape Tech Column
Sep 3, 2021 · Backend Development

Data Desensitization Techniques for Configuration Files, API Responses, and Log Files in Spring Boot

This article explains how to protect sensitive information in Spring Boot applications by encrypting configuration files with jasypt‑spring‑boot, masking API response fields using a custom Jackson annotation, and filtering log output with a custom Log4j2 PatternLayout, providing complete code examples for each method.

Data MaskingJasyptSpring Boot
0 likes · 16 min read
Data Desensitization Techniques for Configuration Files, API Responses, and Log Files in Spring Boot
Programmer DD
Programmer DD
Jun 10, 2021 · Backend Development

How to Implement Field-Level Data Desensitization with Jackson in Java

This tutorial explains how to move data desensitization to the JSON serialization stage using Jackson, defines a @Sensitive annotation, custom strategies, a contextual serializer, and demonstrates the approach with a User class example that masks personal fields during serialization.

custom-annotationdata-desensitizationjackson
0 likes · 6 min read
How to Implement Field-Level Data Desensitization with Jackson in Java
Code Ape Tech Column
Code Ape Tech Column
Jan 4, 2021 · Backend Development

Is FastJson Really Faster? Benchmark vs Jackson and Gson

This article evaluates Alibaba's FastJson library by comparing its parsing speed, Maven popularity, and issue count against Jackson and Gson, presenting benchmark results, highlighting a critical bug in timestamp handling, and concluding with a recommendation to prefer Jackson for most Java projects.

BenchmarkFastJSONGson
0 likes · 7 min read
Is FastJson Really Faster? Benchmark vs Jackson and Gson
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-24616Spring Bootdeserialization
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.

FastJSONGsonJSON parsing
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.

FastJSONGsonjackson
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.

FastJSONGsonJMH
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.

Message ConverterRESTSpring 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.

FeignJavaTimeModuleSpring Boot
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 CommonsDefensive ProgrammingNullPointerException
0 likes · 5 min read
Best Practices for Null‑Safe Programming in Java