Preventing Jackson from Fetching Lazy Entity Fields Example
October 21, 2025
1 min read
●
Java Code Geeks

The Spring Boot JPA project uses Jackson for JSON serialization. When Jackson serializes a JPA entity, it can trigger lazy-loading of associated entities. If the Hibernates proxies are closed, then accessing a lazy field throws HttpMessageNotWritableException.