If we add support for the RFC 7807 Problem Details spec by including the spring.mvc.problemdetails.enabled=true property, then the server.error.include-* (e.g. server.error.include-binding-errors=always and server.error.include-message=always) properties are ignored, the response doesn't retrieve the relevant data.

IMO it would be suitable to allow mixing these two features to obtain an application/problem+json response with all the error information we want.

Note: this issue I submitted to the Spring Core project is somewhat related: https://github.com/spring-projects/spring-framework/issues/29849

Comment From: bugix

To mitigate this, a way to handle MethodArgumentNotValidException and crafting our own ProblemDetail would be useful.