Closed
Description
Spring AOT/Native Image:
- Use
ResponseEntityExceptionHandler
as a base class for your@ControllerAdvice
- Trigger BAD_REQUEST on your endpoint (for example sending empty POST, on endpoint with
@RequestBody
). - Response returned is of content type
Content-Type: application/problem+json
with body{}
When you manually configure org.springframework.http.ProblemDetail
for reflection the response body is {"type":"about:blank","title":"Bad Request","status":400,"detail":"Failed to read request","instance":"/your/endpoint"}