This Spring Boot application demonstrates how to prevent infinite recursion when fetching JPA entities. Using the H2 in-memory database, this project illustrates proper configuration and usage of Jackson annotations such as `@JsonManagedReference` and `@JsonBackReference` to manage bidirectional relationships and avoid serialization issues.
Java 98.11%Dockerfile 1.89%
springboot-json-infinite-recursion's Introduction
springboot-json-infinite-recursion
Features
Spring Boot: Simplifies the development process and provides a robust framework for building enterprise-level applications.
H2 Database: An in-memory database used for simplicity and ease of demonstration.
JPA/Hibernate: Manages the persistence layer and entity relationships.
Jackson Annotations: Handles JSON serialization and prevents infinite recursion with @JsonManagedReference and @JsonBackReference.