-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)theme: aotAn issue related to Ahead-of-time processingAn issue related to Ahead-of-time processingtype: bugA general bugA general bug
Milestone
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"}
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)theme: aotAn issue related to Ahead-of-time processingAn issue related to Ahead-of-time processingtype: bugA general bugA general bug