Tagged articles

jackson

129 articles · Page 1 of 2
Java Tech Enthusiast
Java Tech Enthusiast
Jun 30, 2026 · Backend Development

Spring Boot 4.1.0 Released: Official gRPC Support Boosts Java Microservices

Spring Boot 4.1.0 introduces official gRPC support, unified Jackson configuration, HTTP client SSRF protection, enhanced observability with OpenTelemetry, and flexible Log4j file‑rotation strategies, while the roadmap confirms a one‑year lifecycle for each version and signals the shift to the 4.x era for Java microservices.

ObservabilitySpring Bootgrpc
0 likes · 8 min read
Spring Boot 4.1.0 Released: Official gRPC Support Boosts Java Microservices
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 25, 2026 · Backend Development

Four Ways to Fix Spring Boot JSON Serialization ‘no Session’ Error for Associated Entities

This article presents four practical solutions for the Spring Boot 3.5.0 “Could not write JSON: failed to lazily initialize a collection… no Session” error that occurs when serializing bidirectional one-to-many relationships, covering @JsonIgnore, JPQL fetch joins, enabling OpenEntityManagerInView, and using the Jackson Hibernate6 module, with code examples and results.

Spring Boothibernate6jackson
0 likes · 7 min read
Four Ways to Fix Spring Boot JSON Serialization ‘no Session’ Error for Associated Entities
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 24, 2026 · Backend Development

Ditch Traditional JSON Parsing: Boost Spring Boot API Performance by 30×

A four‑month investigation revealed that Jackson’s default object‑mapper consumed over 60% of CPU time during order‑submission requests, causing 900 ms latency; switching to Jackson’s streaming API reduced average response time from 912 ms to 28 ms, cut GC pauses, and increased throughput eight‑fold, while introducing readability and validation trade‑offs.

JSON parsingPerformance OptimizationSpring Boot
0 likes · 8 min read
Ditch Traditional JSON Parsing: Boost Spring Boot API Performance by 30×
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 23, 2026 · Backend Development

Stop Writing Manual if‑else: Master Spring Boot Partial Updates with @JsonMerge

This article explains how to avoid null‑overwrites during partial updates in Spring Boot by using Jackson's @JsonMerge annotation, demonstrates handling of nested objects and null values with @JsonSetter, and shows how to create a custom @JsonMergePatch argument resolver for clean controller code.

@JsonMergeArgument ResolverPartial Update
0 likes · 9 min read
Stop Writing Manual if‑else: Master Spring Boot Partial Updates with @JsonMerge
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 20, 2026 · Backend Development

Four Advanced Spring Boot Solutions to Eliminate @JsonIgnore and Resolve JSON Recursion

When bidirectional JPA entities cause infinite JSON recursion in Spring Boot, the article explains why @JsonIgnore is suboptimal and demonstrates four advanced alternatives—@JsonIgnoreProperties, @JsonManagedReference/@JsonBackReference, the Jackson Hibernate module, and @JsonIdentityInfo—each with code samples and runtime results.

@JsonIgnorePropertiesHibernateJSON recursion
0 likes · 7 min read
Four Advanced Spring Boot Solutions to Eliminate @JsonIgnore and Resolve JSON Recursion
Java Tech Workshop
Java Tech Workshop
Jun 20, 2026 · Backend Development

How Custom Spring Converters Eliminate Date and Enum Parameter Pain Points

The article explains why front‑end date and enum parameters often cause parsing errors in Spring applications, describes the two independent conversion mechanisms in Spring MVC and Jackson, and provides a step‑by‑step guide to building global custom converters that unify date formats and enum mappings across the whole project.

Backend DevelopmentEnum MappingSpring
0 likes · 17 min read
How Custom Spring Converters Eliminate Date and Enum Parameter Pain Points
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 8, 2026 · Backend Development

Zero-Code Changes: Dynamic Field Masking in Spring Boot

This guide shows how to mask sensitive fields like phone numbers and ID cards in Spring Boot responses without modifying business code, using a global ResponseBodyAdvice, JsonPath rules defined in application.yml, and optional custom @Masking annotation for fine-grained control.

Dynamic MaskingJsonPathResponseBodyAdvice
0 likes · 9 min read
Zero-Code Changes: Dynamic Field Masking in Spring Boot
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 5, 2026 · Backend Development

5 Practical Ways to Handle Dynamic JSON Requests in Spring Boot with Validation

This article explores five practical approaches for processing dynamic JSON payloads in Spring Boot 3.5—using Map, JsonNode, ObjectNode, @JsonAnySetter, and Jackson polymorphic deserialization—detailing code examples, advantages, drawbacks, suitable scenarios, and how to apply runtime validation with networknt’s JSON Schema validator.

Dynamic JSONJSON Schema ValidationJsonAnySetter
0 likes · 11 min read
5 Practical Ways to Handle Dynamic JSON Requests in Spring Boot with Validation
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 29, 2026 · Backend Development

Stop Hardcoding DTOs: Dynamic Column‑Level Masking in Spring Boot

This article shows how to replace static DTO definitions with a zero‑intrusion, high‑concurrency solution for column‑level data masking in Spring Boot 3.5.0 by leveraging Jackson's serialization pipeline, a global Mixin, custom annotations, a contextual serializer, and a ResponseBodyAdvice that respects request‑scoped permissions.

DTODynamic MaskingResponseBodyAdvice
0 likes · 10 min read
Stop Hardcoding DTOs: Dynamic Column‑Level Masking in Spring Boot
Java Tech Workshop
Java Tech Workshop
Apr 24, 2026 · Backend Development

SpringBoot Sensitive Data Desensitization via Jackson Serialization (Zero‑Intrusion, High‑Performance)

This article explains how to protect user privacy in SpringBoot applications by masking sensitive fields such as phone numbers, ID cards, emails, bank cards, names, and addresses during JSON serialization using a custom Jackson serializer and annotation, offering a zero‑intrusion, high‑performance solution compared to other approaches.

Annotationbackenddata-desensitization
0 likes · 16 min read
SpringBoot Sensitive Data Desensitization via Jackson Serialization (Zero‑Intrusion, High‑Performance)
LuTiao Programming
LuTiao Programming
Mar 1, 2026 · Backend Development

How to Elegantly Handle Dynamic Request Bodies in Spring Boot

This article explains why using a fixed DTO for a constantly changing /orders endpoint is problematic, compares simple Map and JsonNode approaches, and presents a robust polymorphic @JsonTypeInfo solution that provides type safety, IDE support, and easy extensibility.

Dynamic JSONJsonNodePolymorphic Deserialization
0 likes · 9 min read
How to Elegantly Handle Dynamic Request Bodies in Spring Boot
Coder Trainee
Coder Trainee
Feb 20, 2026 · Backend Development

Why Lombok-generated getters cause JSON fields to become lowercase

The article explains how Lombok’s @Data annotation generates getter and setter methods with a lowercase first letter for camel‑case fields, causing Jackson to serialize JSON property names in all lowercase, and offers three fixes: write methods manually, use @JsonProperty, or rename fields to avoid lower‑upper patterns.

LombokcamelCasejackson
0 likes · 4 min read
Why Lombok-generated getters cause JSON fields to become lowercase
Architecture Digest
Architecture Digest
Feb 5, 2026 · Backend Development

What Surprising Changes Await You When Upgrading to Jackson 3 in Spring Boot 4?

Upgrading to Spring Boot 4 brings Jackson 3, which introduces four major breaking changes—package reorganization, replacement of ObjectMapper with JsonMapper, a shift to ISO‑8601 date serialization, and the removal of checked exceptions—each explained with code examples, migration tips, and the rationale behind the design.

Spring Bootdependency managementjackson
0 likes · 6 min read
What Surprising Changes Await You When Upgrading to Jackson 3 in Spring Boot 4?
Code Ape Tech Column
Code Ape Tech Column
Jan 16, 2026 · Backend Development

Master JSONPath in Spring Boot: Simplify Complex JSON Extraction

JSONPath offers a concise, XPath‑like syntax for extracting data from complex JSON structures, and this guide shows how to integrate it into Spring Boot, compare FastJSON, Jackson, and Gson implementations, and provides practical code examples, advanced configurations, and selection advice for Java projects.

FastJSONGsonJsonPath
0 likes · 13 min read
Master JSONPath in Spring Boot: Simplify Complex JSON Extraction
Architecture Digest
Architecture Digest
Jan 8, 2026 · Backend Development

Why Do Jackson 2 and 3 Coexist? Uncover the 4 Breaking Changes in Jackson 3

After upgrading to Spring Boot 4, the article explains why both Jackson 2 and Jackson 3 appear together, outlines the four major breaking changes—including package reorganization, the shift from ObjectMapper to JsonMapper, new default date serialization, and the removal of checked exceptions—and offers migration tips.

Spring Bootjacksonjava
0 likes · 6 min read
Why Do Jackson 2 and 3 Coexist? Uncover the 4 Breaking Changes in Jackson 3
IT Services Circle
IT Services Circle
Jan 8, 2026 · Backend Development

How to Seamlessly Upgrade to Spring Boot 4.0: A Step‑by‑Step Guide

This guide walks you through upgrading a Spring Boot project from 3.x to 4.0, covering Gradle version bump, dependency version catalog updates, starter module changes, Jackson 3 migration, Redisson API adjustments, and verification steps, while highlighting common pitfalls and official upgrade paths.

Spring AISpring BootUpgrade
0 likes · 13 min read
How to Seamlessly Upgrade to Spring Boot 4.0: A Step‑by‑Step Guide
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 1, 2026 · Backend Development

Master Jackson in Spring Boot 3: Real‑World JSON Tricks & Examples

This tutorial walks through Jackson usage in Spring Boot 3, covering annotations for ignoring fields, renaming properties, custom serialization/deserialization, constructor handling, property visibility, date formatting, efficient JSON read/write, and enum handling with clear code samples and output screenshots.

Backend DevelopmentSpring Bootannotations
0 likes · 11 min read
Master Jackson in Spring Boot 3: Real‑World JSON Tricks & Examples
Senior Xiao Ying
Senior Xiao Ying
Dec 23, 2025 · Backend Development

Master Bidirectional JSON↔CSV Conversion in Spring Boot Quickly

This guide explains how to perform bidirectional conversion between JSON and CSV in Spring Boot using lightweight open‑source libraries such as Jackson, Apache Commons CSV or OpenCSV, as well as commercial APIs, covering serialization, deserialization, custom handling of nested objects, and provides complete code examples.

Apache Commons CSVCSVSpring Boot
0 likes · 6 min read
Master Bidirectional JSON↔CSV Conversion in Spring Boot Quickly
Senior Xiao Ying
Senior Xiao Ying
Nov 26, 2025 · Backend Development

Simple Field-Level Permission Control in Spring Boot 3.x

Field-level permission control provides fine-grained data access in Spring Boot applications, allowing read/write restrictions per object field; the article explains core concepts, compares annotation, AOP, serializer, and database approaches, and presents a complete implementation using Spring Boot 3.1, Java 17, Jackson, and Spring Security.

AOPField PermissionSpring Boot
0 likes · 16 min read
Simple Field-Level Permission Control in Spring Boot 3.x
Programmer XiaoFu
Programmer XiaoFu
Nov 10, 2025 · Backend Development

Why Ignoring SpringBoot’s Default Settings Guarantees Trouble

SpringBoot’s out‑of‑the‑box defaults—such as Tomcat’s tiny connection pool, HikariCP’s 10‑thread limit, lazy‑loaded JPA entities, system‑timezone JSON serialization, un‑rolled Logback files, unlimited in‑memory cache, exposed Actuator endpoints, tiny file‑upload limits, per‑task thread creation for @Async, and unlimited transaction timeouts—can silently cripple production systems, so each must be reviewed and tuned for real‑world workloads.

CaffeineHikariCPLogback
0 likes · 11 min read
Why Ignoring SpringBoot’s Default Settings Guarantees Trouble
Java Companion
Java Companion
Nov 8, 2025 · Backend Development

How Jackson Views Let One DTO Replace Many and End DTO Explosion

The article explains how Jackson Views can consolidate multiple DTO classes into a single DTO by using view interfaces and @JsonView annotations, dramatically reducing code duplication, simplifying maintenance, and providing flexible field selection for different API scenarios.

@JsonViewDTOSpring
0 likes · 11 min read
How Jackson Views Let One DTO Replace Many and End DTO Explosion
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 2, 2025 · Backend Development

Master Advanced JSON Handling in Spring Boot 3 with Jackson

This article walks through advanced Jackson techniques for JSON processing in Spring Boot 3, including path queries, multi‑value extraction, view control, dynamic property handling, object unwrapping, and raw JSON insertion, each illustrated with concise JUnit test examples and expected outputs.

Backend DevelopmentSpring Bootjackson
0 likes · 10 min read
Master Advanced JSON Handling in Spring Boot 3 with Jackson
Programmer DD
Programmer DD
Oct 23, 2025 · Backend Development

Why Jackson Serialization Can Drain Your CPU and How to Fix It

The article reveals how default Jackson JSON serialization can become a hidden CPU bottleneck in high‑traffic Spring Boot services, explains why full entity objects inflate serialization time, and presents practical optimizations such as @JsonView, custom ObjectMapper settings, hand‑written serializers, and alternative data formats to dramatically cut latency and cloud costs.

DTOPerformance OptimizationSpring Boot
0 likes · 13 min read
Why Jackson Serialization Can Drain Your CPU and How to Fix It
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 21, 2025 · Backend Development

Master JSON Control in Spring Boot 3: Practical Guide to @JsonProperty, @JsonView & Mix‑ins

This article explains how to fine‑tune JSON responses in Spring Boot 3 using Jackson annotations such as @JsonProperty, @JsonFormat, @JsonView, and Mix‑ins, covering field hiding, renaming, null handling, date/number formatting, view‑based serialization, and custom ObjectMapper configuration with code examples.

MixinREST APISpring Boot
0 likes · 9 min read
Master JSON Control in Spring Boot 3: Practical Guide to @JsonProperty, @JsonView & Mix‑ins
Java Tech Enthusiast
Java Tech Enthusiast
Oct 12, 2025 · Backend Development

Master JSON Field Adaptation in Spring Boot: 3 Powerful Techniques

This article explains why JSON field mismatches cause backend failures in microservice architectures and presents three robust Spring Boot solutions—using a Map, Jackson's JsonNode, and @JsonAnySetter/@JsonAnyGetter—to flexibly and safely adapt dynamic JSON structures.

Backend DevelopmentDynamic Mappingjackson
0 likes · 7 min read
Master JSON Field Adaptation in Spring Boot: 3 Powerful Techniques
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 11, 2025 · Backend Development

Master Advanced Jackson Techniques in Spring Boot 3: From Files to Streaming

This article dives into advanced Jackson capabilities for Spring Boot 3, covering file, stream, byte array, URL, typed Map, JsonNode, ObjectNode, and streaming JsonParser techniques, each illustrated with concise code examples to help developers build robust, flexible JSON handling in backend services.

Backend DevelopmentObjectMapperjackson
0 likes · 9 min read
Master Advanced Jackson Techniques in Spring Boot 3: From Files to Streaming
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 19, 2025 · Backend Development

Unlock Advanced JSON Control in Spring Boot 3 with Rare Jackson Annotations

This article demonstrates how to use four lesser‑known Jackson annotations—@JsonAppend, @JsonNaming, @JsonPropertyDescription, and @JsonPOJOBuilder—to extend JSON serialization, customize property naming, enrich JSON Schema documentation, and deserialize immutable objects within Spring Boot 3 applications.

Spring Bootannotationsbackend
0 likes · 9 min read
Unlock Advanced JSON Control in Spring Boot 3 with Rare Jackson Annotations
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 3, 2025 · Backend Development

Master Spring Boot 3 JSON Handling: 12 Essential Jackson Annotations with Real‑World Examples

This article walks through the most common Jackson annotations for Spring Boot 3, explaining their purpose, showing concise code samples, and demonstrating the resulting JSON output with screenshots, so developers can confidently handle naming, ignoring, formatting, dynamic properties, and custom serialization in their APIs.

annotationsjacksonjson
0 likes · 11 min read
Master Spring Boot 3 JSON Handling: 12 Essential Jackson Annotations with Real‑World Examples
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 27, 2025 · Backend Development

5 Powerful Techniques to Mask Sensitive Fields in Spring Boot 3

This article explains why masking sensitive data such as ID numbers, phone numbers, and bank cards is essential, then demonstrates five practical Spring Boot 3 solutions—including custom JsonSerializer, Jackson modules, AOP, ResponseBodyAdvice, and JsonFilter—complete with code examples and output screenshots.

AOPData MaskingResponseBodyAdvice
0 likes · 8 min read
5 Powerful Techniques to Mask Sensitive Fields in Spring Boot 3
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 7, 2025 · Backend Development

Mastering Date Formatting in Spring Boot 3: 5 Practical Solutions

This article explains why proper date formatting matters in Spring Boot applications, compares the default Jackson behavior, and presents five concrete approaches—including global configuration, @JsonFormat, custom ObjectMapper, @JsonComponent, and @JsonSerialize—detailing their implementations, advantages, and drawbacks.

Spring Bootdate-formattingjackson
0 likes · 8 min read
Mastering Date Formatting in Spring Boot 3: 5 Practical Solutions
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 11, 2025 · Backend Development

How to Solve Spring Boot Bidirectional JSON Recursion with 6 Jackson Techniques

This article explains why bidirectional entity relationships cause infinite JSON recursion in Spring Boot, demonstrates the problem with sample code and console output, and presents six practical Jackson solutions—including @JsonManagedReference, @JsonIdentityInfo, @JsonIgnore, @JsonView, and custom serializers—complete with code snippets and result screenshots.

Bidirectional relationshipJSON recursionSpring Boot
0 likes · 9 min read
How to Solve Spring Boot Bidirectional JSON Recursion with 6 Jackson Techniques
Java Backend Technology
Java Backend Technology
Jul 7, 2025 · Backend Development

Master Dynamic JSON Fields in Java with @JsonAnyGetter and @JsonAnySetter

This article explains how Jackson's @JsonAnySetter and @JsonAnyGetter annotations let Java classes gracefully handle unknown JSON properties by collecting them into a map during deserialization and emitting them as regular fields during serialization, complete with practical code examples and usage tips.

DynamicPropertiesannotationsdeserialization
0 likes · 7 min read
Master Dynamic JSON Fields in Java with @JsonAnyGetter and @JsonAnySetter
macrozheng
macrozheng
Jul 1, 2025 · Backend Development

Master Dynamic JSON Fields in Java with @JsonAnyGetter & @JsonAnySetter

This article explains how to handle JSON objects with unknown or changing fields in Java by using Jackson's @JsonAnySetter to collect them during deserialization and @JsonAnyGetter to serialize them back, complete with code examples, pitfalls, and a concise analogy.

DynamicPropertiesdeserializationjackson
0 likes · 8 min read
Master Dynamic JSON Fields in Java with @JsonAnyGetter & @JsonAnySetter
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 18, 2025 · Backend Development

Master Polymorphic Deserialization in Spring Boot 3 with Jackson

This tutorial shows how to use Jackson's polymorphic deserialization in Spring Boot 3 to handle variable JSON request bodies by defining a common Order interface, concrete implementations, and a REST controller that routes calculations based on the order type, eliminating redundant endpoints.

Polymorphic DeserializationREST APISpring Boot
0 likes · 6 min read
Master Polymorphic Deserialization in Spring Boot 3 with Jackson
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 31, 2025 · Backend Development

Mastering Jackson ObjectMapper in Spring Boot 3: Real-World Cases & Performance Tips

This article explores Jackson's ObjectMapper in Spring Boot 3, covering basic serialization/deserialization, converting between objects, JSON strings, JsonNode, and collections, custom serializers/deserializers, handling unknown fields, and performance tuning with the Afterburner module and JMH benchmarks.

ObjectMapperSpring Bootdeserialization
0 likes · 12 min read
Mastering Jackson ObjectMapper in Spring Boot 3: Real-World Cases & Performance Tips
Lin is Dream
Lin is Dream
May 28, 2025 · Backend Development

Mastering Uniform Date Formatting in Spring Boot with Jackson

This guide shows how to configure Jackson in Spring Boot to consistently format LocalDateTime, Date, and String parameters as "yyyy-MM-dd HH:mm:ss", covering global settings via application properties, field-level @JsonFormat, custom serializers/deserializers, and unified handling in REST controllers.

Spring Bootdate-formattingjackson
0 likes · 8 min read
Mastering Uniform Date Formatting in Spring Boot with Jackson
Code Ape Tech Column
Code Ape Tech Column
Apr 9, 2025 · Backend Development

Using @JsonView in Spring to Control JSON Serialization of Fields

This article explains how the Jackson @JsonView annotation can be used in Spring back‑end projects to selectively serialize object fields, reduce bandwidth, improve security, and handle nested associations by defining view interfaces and applying them on entity fields and controller methods.

@JsonViewRESTSpring
0 likes · 8 min read
Using @JsonView in Spring to Control JSON Serialization of Fields
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Apr 7, 2025 · Backend Development

Mastering @JsonView in Spring Boot 3: Dynamic JSON Serialization Techniques

This article explains how to use Jackson's @JsonView annotation in Spring Boot 3 to flexibly control JSON output for different REST scenarios, covering basic usage, programmatic view selection, view‑based MVC responses, deserialization restrictions, and default‑inclusion configuration with practical code examples.

@JsonViewRESTSpring Boot
0 likes · 8 min read
Mastering @JsonView in Spring Boot 3: Dynamic JSON Serialization Techniques
macrozheng
macrozheng
Mar 31, 2025 · Backend Development

Why Using isSuccess Can Break JSON Serialization in Java and How to Fix It

This article explains how different Java boolean naming conventions affect JSON serialization across fastjson, Gson, and Jackson, demonstrates the resulting inconsistencies with code examples, and recommends using a plain "success" field with an isSuccess getter to ensure reliable cross‑library behavior.

FastJSONGsonJavaBeans
0 likes · 7 min read
Why Using isSuccess Can Break JSON Serialization in Java and How to Fix It
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 7, 2025 · Backend Development

Master Dynamic JSON in Spring Boot 3: 4 Practical Techniques

This article explains why Spring Boot 3 uses Jackson for JSON handling, describes four effective methods—JsonNode, Map, @JsonAnySetter, and custom deserializer—to process dynamic JSON properties, and promotes a continuously updated collection of over 90 Spring Boot case studies with source code.

Custom DeserializerDynamic JSONJsonAnySetter
0 likes · 9 min read
Master Dynamic JSON in Spring Boot 3: 4 Practical Techniques
Java Tech Enthusiast
Java Tech Enthusiast
Jan 5, 2025 · Backend Development

Six Common JSON Parsing Methods in Java

Java developers can parse JSON using six popular approaches—Jackson for high‑performance, annotation‑driven serialization; Gson for a lightweight, easy‑to‑use API; FastJSON for speed; JsonPath for XPath‑style nested extraction; org.json for simple utility; or manual parsing for full control—each suited to different performance and complexity needs.

FastJSONGsonJsonPath
0 likes · 9 min read
Six Common JSON Parsing Methods in Java
Architect's Guide
Architect's Guide
Dec 23, 2024 · Backend Development

Implementing API Request and Response Encryption/Decryption with Spring Boot and ControllerAdvice

This article walks through the design and implementation of symmetric AES encryption for both GET and POST API endpoints in a Spring Boot application, covering requirement analysis, data model definition, custom RequestBodyAdvice and ResponseBodyAdvice, serialization challenges with FastJSON vs Jackson, and final configuration to ensure consistent JSON output across encrypted and non‑encrypted responses.

@ControllerAdviceAESAPI Encryption
0 likes · 12 min read
Implementing API Request and Response Encryption/Decryption with Spring Boot and ControllerAdvice
Top Architecture Tech Stack
Top Architecture Tech Stack
Nov 7, 2024 · Backend Development

Date Formatting Techniques in Spring Boot Applications

This article explains why consistent date formatting is crucial in Spring Boot APIs, outlines common scenarios such as front‑end data exchange, database storage and logging, and presents multiple server‑side and client‑side solutions—including SimpleDateFormat, DateTimeFormatter, global Jackson settings, annotations, custom converters, and timestamp output—complete with code examples.

Backend DevelopmentDateTimeFormatterSpring Boot
0 likes · 12 min read
Date Formatting Techniques in Spring Boot Applications
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 5, 2024 · Backend Development

Solve Long Precision Loss in Spring Boot 3 with Jackson and Custom Annotations

This article demonstrates how to handle Java Long precision loss in Spring Boot 3 front‑end displays, configures Jackson to serialize Long as String, uses @JsonValue for single‑property serialization, and creates custom annotations with a SensitiveSerializer for data masking, complete with code examples and screenshots.

Data MaskingLong precisionSpring Boot
0 likes · 9 min read
Solve Long Precision Loss in Spring Boot 3 with Jackson and Custom Annotations
Top Architecture Tech Stack
Top Architecture Tech Stack
Nov 4, 2024 · Backend Development

Date Formatting Techniques in Spring Boot Applications

This article explains various Spring Boot approaches for formatting dates in API responses, covering frontend JavaScript utilities, Java SimpleDateFormat and DateTimeFormatter, global Jackson settings, annotation‑based formatting, custom converters, ControllerAdvice initBinder, and timestamp output methods.

Backend DevelopmentDateTimeFormatterSpring Boot
0 likes · 12 min read
Date Formatting Techniques in Spring Boot Applications
Architecture Digest
Architecture Digest
Oct 16, 2024 · Backend Development

Implementing Request and Response Encryption in Spring Boot with ControllerAdvice

This article walks through the design and implementation of symmetric request/response encryption for a Spring Boot API, covering requirement analysis, data models, custom ControllerAdvice for decryption and encryption, serialization challenges with FastJson and Jackson, and final configuration to keep encrypted payloads consistent across Android, iOS, and H5 clients.

@ControllerAdviceAPI EncryptionBackend Development
0 likes · 12 min read
Implementing Request and Response Encryption in Spring Boot with ControllerAdvice
macrozheng
macrozheng
Sep 5, 2024 · Information Security

How to Automatically Mask Sensitive Data in Spring Boot with Jackson Annotations

This article explains how to implement unified data desensitization in Java Spring Boot applications by creating custom annotations, enums, serializers, and utility methods that automatically mask personal information during JSON serialization, complete with code examples and test results.

Backend DevelopmentData MaskingSpring Boot
0 likes · 13 min read
How to Automatically Mask Sensitive Data in Spring Boot with Jackson Annotations
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 22, 2024 · Backend Development

Master Jackson Annotations in Spring Boot 3.2.5: From @JsonAnyGetter to Custom Annotations

This tutorial explores Jackson's rich annotation set in Spring Boot 3.2.5, demonstrating how to serialize and deserialize JSON with built‑in annotations like @JsonAnyGetter, @JsonGetter, @JsonPropertyOrder, and @JsonIgnore, how to create custom annotations, and how to disable annotation processing for fine‑grained control.

Spring Bootannotationsdeserialization
0 likes · 13 min read
Master Jackson Annotations in Spring Boot 3.2.5: From @JsonAnyGetter to Custom Annotations
Java Tech Enthusiast
Java Tech Enthusiast
Aug 14, 2024 · Backend Development

Customizing JSON Serialization and Deserialization in Spring Boot

In Spring Boot you can customize JSON request and response handling by annotating fields with @JsonSerialize/@JsonDeserialize, registering a global ObjectMapper module, adding a PropertyEditor via @ControllerAdvice, creating a custom HttpMessageConverter, or using AOP interception, selecting the approach that matches your project’s complexity.

AOPSpring Bootdeserialization
0 likes · 7 min read
Customizing JSON Serialization and Deserialization in Spring Boot
Java Tech Enthusiast
Java Tech Enthusiast
Aug 11, 2024 · Information Security

Java Data Desensitization with Hutool and Custom Jackson Serializer

The article demonstrates how to mask sensitive Java backend data by using Hutool's DesensitizedUtil for common types and a custom @Desensitization annotation with a DesensitizationTypeEnum‑driven Jackson serializer (or Fastjson ValueFilter) to apply flexible masking rules during JSON serialization.

HutoolSpring Bootdata-desensitization
0 likes · 7 min read
Java Data Desensitization with Hutool and Custom Jackson Serializer
HelloTech
HelloTech
May 10, 2024 · Backend Development

Root Cause Analysis and Optimization of G1GC Pauses Caused by StringTable Growth in Java Services

The investigation revealed that G1GC pauses were caused by uncontrolled growth of the JVM StringTable, triggered by Jackson’s InternCache interning countless random JSON field names, and was mitigated by enlarging the young generation, disabling field‑name interning, tuning G1 parameters, and monitoring StringTable size.

G1GCGC TuningJSON interning
0 likes · 37 min read
Root Cause Analysis and Optimization of G1GC Pauses Caused by StringTable Growth in Java Services
Architect's Guide
Architect's Guide
May 10, 2024 · Backend Development

Implementing Request and Response Encryption in Spring Boot with ControllerAdvice and Jackson

This article demonstrates how to secure Spring Boot APIs by encrypting request and response bodies using custom ControllerAdvice, switching from FastJson to Jackson for proper enum and date serialization, and configuring ObjectMapper to produce consistent JSON output across encrypted and non‑encrypted endpoints.

@ControllerAdviceAPI SecurityEncryption
0 likes · 13 min read
Implementing Request and Response Encryption in Spring Boot with ControllerAdvice and Jackson
Shepherd Advanced Notes
Shepherd Advanced Notes
Apr 29, 2024 · Backend Development

How to Implement Dynamic, Configurable Data Desensitization in Spring Boot

This article walks through a Spring Boot solution for dynamically masking sensitive user data—such as names, ID numbers, phone numbers, and custom fields—by defining custom annotations, a configurable rule engine, a Redis‑backed context holder, and a Jackson serializer that applies masking at JSON serialization time, all while keeping performance overhead low.

Hutoolbackendcustom-annotation
0 likes · 24 min read
How to Implement Dynamic, Configurable Data Desensitization in Spring Boot
macrozheng
macrozheng
Feb 22, 2024 · Backend Development

Why Using isSuccess Can Break JSON Serialization in Java

This article explains how different Java JSON libraries handle boolean getter naming, shows code examples of serialization results with fastjson, Gson, and Jackson, and recommends using a plain "success" field with an isSuccess() getter to avoid runtime bugs.

FastJSONGsonJavaBeans
0 likes · 7 min read
Why Using isSuccess Can Break JSON Serialization in Java
Architect
Architect
Feb 7, 2024 · Backend Development

How to Secure Spring MVC APIs with Request/Response Encryption Using ControllerAdvice

This article walks through a real‑world scenario of adding symmetric encryption to Spring MVC endpoints for Android, iOS and H5 clients, detailing the requirements, code implementation of request and response interceptors, serialization pitfalls with enums and LocalDateTime, and the final solution using Jackson's ObjectMapper to keep encrypted and non‑encrypted responses consistent.

@ControllerAdviceAPI SecurityEncryption
0 likes · 17 min read
How to Secure Spring MVC APIs with Request/Response Encryption Using ControllerAdvice
Java Backend Technology
Java Backend Technology
Dec 8, 2023 · Backend Development

Why Reusing a Single Jackson ObjectMapper Boosts JSON Parsing Speed 10×

Using Jackson's ObjectMapper for JSON parsing, this article benchmarks three approaches—creating a new mapper per call, sharing a global singleton, and using ThreadLocal—revealing that a single shared ObjectMapper can achieve up to ten times higher throughput, while ThreadLocal offers only modest gains.

JMHObjectMapperjackson
0 likes · 7 min read
Why Reusing a Single Jackson ObjectMapper Boosts JSON Parsing Speed 10×
Java Architecture Diary
Java Architecture Diary
Dec 5, 2023 · Backend Development

Master JSON Pointer with Jackson: Syntax, Examples, and Java Code

This article explains the JSON Pointer syntax, provides encoding rules and practical examples, demonstrates how to extract values from complex JSON structures using Jackson's JsonUtil in Java, and shows how to map nodes to Java beans, offering a concise guide for developers.

JSON Pointerdata extractionjackson
0 likes · 6 min read
Master JSON Pointer with Jackson: Syntax, Examples, and Java Code
Shepherd Advanced Notes
Shepherd Advanced Notes
Oct 16, 2023 · Backend Development

How to Elegantly Implement Dynamic, Configurable, High‑Performance Data Desensitization in Spring Boot

The article explains why user privacy data must be masked, then walks through a Spring Boot solution that uses custom annotations, an aspect‑oriented filter, a contextual serializer and a flexible rule engine stored in Redis to achieve dynamic, high‑performance data desensitization without polluting business logic.

Spring Bootcustom-annotationdata-desensitization
0 likes · 18 min read
How to Elegantly Implement Dynamic, Configurable, High‑Performance Data Desensitization in Spring Boot
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 7, 2023 · Information Security

Secure API Responses with Data Masking, Encryption, and Jackson Annotations

This article explains practical methods to protect sensitive API data in Spring Boot applications, covering encryption, masking, access control, logging, HTTPS, and database security, and demonstrates three implementation approaches: SQL‑level masking, field‑level encryption, and custom Jackson serialization using annotations and a contextual serializer.

API SecurityData MaskingSpring Boot
0 likes · 8 min read
Secure API Responses with Data Masking, Encryption, and Jackson Annotations
macrozheng
macrozheng
Aug 24, 2023 · Backend Development

Why Reusing a Single Jackson ObjectMapper Boosts JSON Performance 10×

This article explains how repeatedly creating Jackson ObjectMapper instances hurts performance, demonstrates a JMH benchmark comparing new, singleton, and ThreadLocal ObjectMapper usages, and concludes that a single globally shared ObjectMapper can achieve up to ten times faster JSON parsing.

BenchmarkJMHObjectMapper
0 likes · 8 min read
Why Reusing a Single Jackson ObjectMapper Boosts JSON Performance 10×
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 17, 2023 · Backend Development

Understanding Jackson vs Fastjson Serialization of Circular References and Global Exception Handling in Spring Boot

The article examines how Spring Boot handles circular reference serialization with Jackson and Fastjson, demonstrates the role of @ControllerAdvice for global exception capture, explains why Jackson may emit both 200 and 500 responses, and provides practical solutions using annotations and configuration.

FastJSONSpring Bootbackend
0 likes · 18 min read
Understanding Jackson vs Fastjson Serialization of Circular References and Global Exception Handling in Spring Boot
Selected Java Interview Questions
Selected Java Interview Questions
Jul 31, 2023 · Backend Development

How to Configure Date Formatting in SpringBoot Backend Applications

This guide explains how to customize the serialization and deserialization of Date objects in SpringBoot by adjusting application.yml/properties, using @JsonFormat, @DateTimeFormat, and @Temporal annotations, and by creating global converters for both form submissions and JSON payloads, ensuring consistent timezone handling.

Backend DevelopmentGlobal Converterdate-formatting
0 likes · 12 min read
How to Configure Date Formatting in SpringBoot Backend Applications
Programmer DD
Programmer DD
May 22, 2023 · Backend Development

What’s New in Spring Boot 3.1? Key Features and Upgrades Explained

Spring Boot 3.1.0 introduces a host of enhancements—including automatic configuration for Spring Authorization Server, upgraded HttpClient support, refined Testcontainers integration, new Docker‑Compose capabilities, and updates to Hibernate, Jackson, Mockito, and SSL handling—while also providing detailed Maven and Gradle options for image building.

Backend DevelopmentDocker ComposeHibernate
0 likes · 10 min read
What’s New in Spring Boot 3.1? Key Features and Upgrades Explained
Java Architect Essentials
Java Architect Essentials
Feb 21, 2023 · Backend Development

Performance Benchmark of Common Java JSON Libraries Using JMH

This article benchmarks the serialization and deserialization performance of four popular Java JSON libraries—Gson, Fastjson, Jackson, and Json‑lib—using JMH, analyzes the results across different operation counts, and provides guidance on selecting the most suitable library for high‑performance applications.

FastJSONGsonJMH
0 likes · 11 min read
Performance Benchmark of Common Java JSON Libraries Using JMH
Su San Talks Tech
Su San Talks Tech
Nov 14, 2022 · Backend Development

How to Secure Spring MVC APIs with Unified Request/Response Encryption

This article walks through implementing symmetric encryption for both request and response bodies in a Spring MVC project, covering requirement analysis, data model design, custom ControllerAdvice for decryption and encryption, serialization challenges with FastJson and Jackson, and final configuration to ensure consistent API output across Android, iOS, and H5 clients.

@ControllerAdviceFastJSONjackson
0 likes · 14 min read
How to Secure Spring MVC APIs with Unified Request/Response Encryption
Sohu Tech Products
Sohu Tech Products
Nov 2, 2022 · Information Security

Handling XSS Vulnerabilities in Spring Boot: Request Wrapper, Filters, and Jackson Custom Serialization

This article documents a step‑by‑step solution for preventing XSS attacks in a Spring Boot application, covering input validation, a custom HttpServletRequestWrapper, filter registration, and Jackson serializers/deserializers to escape malicious HTML both on request parameters and JSON payloads.

Input ValidationRequestWrapperSpring Boot
0 likes · 16 min read
Handling XSS Vulnerabilities in Spring Boot: Request Wrapper, Filters, and Jackson Custom Serialization
Java Architect Essentials
Java Architect Essentials
Oct 17, 2022 · Backend Development

Performance Benchmark of Common Java JSON Libraries (Gson, FastJson, Jackson, Json-lib)

This article presents a JMH‑based performance comparison of four popular Java JSON libraries—Gson, FastJson, Jackson, and Json‑lib—covering their Maven dependencies, utility wrappers, a realistic Person model, serialization and deserialization benchmarks, and analysis of the results to guide library selection.

GsonJson-libPerformance Benchmark
0 likes · 15 min read
Performance Benchmark of Common Java JSON Libraries (Gson, FastJson, Jackson, Json-lib)
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.

annotationsdateformatjackson
0 likes · 11 min read
Configuring Date Formatting in SpringBoot Applications
Cognitive Technology Team
Cognitive Technology Team
Aug 12, 2022 · Backend Development

Handling Large Integer IDs in Java and JavaScript: Preventing Precision Loss with Jackson Configuration

When generating large IDs using Snowflake-like algorithms, Java's 64‑bit long values exceed JavaScript's safe integer range, causing display errors; the article explains how to resolve this by serializing Long values as strings in Spring Boot using Jackson's ToStringSerializer, both via configuration and annotations.

ID SerializationJavaScriptLong
0 likes · 2 min read
Handling Large Integer IDs in Java and JavaScript: Preventing Precision Loss with Jackson Configuration
Top Architect
Top Architect
Jul 13, 2022 · Backend Development

Configurable Data Masking in Spring Boot Using Custom Annotations and Jackson

This article demonstrates how to implement a flexible data‑masking solution for sensitive fields in Spring Boot APIs by defining a custom annotation, creating a serializer, integrating it with Jackson via an AnnotationIntrospector, configuring the ObjectMapper, and applying the annotation to domain objects.

Backend DevelopmentData MaskingSpring Boot
0 likes · 7 min read
Configurable Data Masking in Spring Boot Using Custom Annotations and Jackson