Spring Boot JSON Patch done Right

Gaetano Piazzolla
5 min readSep 25, 2024

This straight-to-the-point — no-bullshit — all-the-other-articles-out-there-are-too-verbose-and-they-dont-get-to-the-point article illustrates this repository https://github.com/GaetanoPiazzolla/spring-boot-patch in which

JSON Patch is applied to JPA entities in a Spring Boot Application.

This approach is designed to be generic, reusable, and optimized, so it should be easy to apply to any spring-boot-based and JPA-based project. If not please drop me a message, and I’ll send you a PIZZA instead.

Table of Content

· Tech Used
· Core Components
· How to apply JSON Patch to ANY JPA entity
· API Documentation
· Concurrency Handling
· Typescript Stubs Generation
· Stubs Usage Example in Frontend
· Testing
· Not so Frequently Asked Questions (NSFAQ)

Tech Used

The project uses the following technologies and libraries:

--

--