Spring Boot provides a default error response format with a number of properties, some of which must be opted into including:
{
"timestamp": "2021-01-25T20:29:27.984+00:00",
"status": 400,
"error": "Bad Request",
"exception": "org.springframework.http.converter.HttpMessageNotReadableException",
"trace": "<multi-line stack trace goes here>",
"path": "/path/to/endpoint"
}
Spring Boot provides a number of properties for whether to include the optional details in its error responses:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…