How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

How to set a default request body value

calendar_today July 10, 2026 person Lako12 domain spring-boot

I upgraded my application from Spring Boot 3 to Spring Boot 4, so I also updated Jackson. However, I encountered a problem. If I have an endpoint that takes an object like @RequestBody , and I define an attribute like this inside it: private boolean required = true; The default value of true is ignored, while this wasn’t the case with Jackson 2.

open_in_new Read original post