From 94d29bac9f8f56af4608b8d4325e4ff310ecb123 Mon Sep 17 00:00:00 2001 From: Vedran Pavic Date: Fri, 7 Mar 2025 12:06:48 +0100 Subject: [PATCH] Fix typo in Spring MVC error responses documentation Closes gh-34552 Signed-off-by: Vedran Pavic --- .../modules/ROOT/pages/web/webmvc/mvc-ann-rest-exceptions.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework-docs/modules/ROOT/pages/web/webmvc/mvc-ann-rest-exceptions.adoc b/framework-docs/modules/ROOT/pages/web/webmvc/mvc-ann-rest-exceptions.adoc index 03c2b0b5f68..788a32d0fff 100644 --- a/framework-docs/modules/ROOT/pages/web/webmvc/mvc-ann-rest-exceptions.adoc +++ b/framework-docs/modules/ROOT/pages/web/webmvc/mvc-ann-rest-exceptions.adoc @@ -37,7 +37,7 @@ already set. "application/problem+json" over "application/json" when rendering a `ProblemDetail`, and also falls back on it if no compatible media type is found. -To enable RFC 9457 responses for Spring WebFlux exceptions and for any +To enable RFC 9457 responses for Spring MVC exceptions and for any `ErrorResponseException`, extend `ResponseEntityExceptionHandler` and declare it as an xref:web/webmvc/mvc-controller/ann-advice.adoc[@ControllerAdvice] in Spring configuration. The handler has an `@ExceptionHandler` method that handles any `ErrorResponse` exception, which