From 91ff706e8c66bc9ce2a38276e081a9b84b421e38 Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Wed, 28 Jan 2026 14:27:27 +0100 Subject: [PATCH] Fix formatting and spelling (cherry picked from commit 4dacc64a3016c8b367317f2ee82e287d199b7d1a) --- .../modules/ROOT/pages/web/webflux/ann-rest-exceptions.adoc | 2 +- .../ROOT/pages/web/webmvc/mvc-ann-rest-exceptions.adoc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/framework-docs/modules/ROOT/pages/web/webflux/ann-rest-exceptions.adoc b/framework-docs/modules/ROOT/pages/web/webflux/ann-rest-exceptions.adoc index 09930297e34..ccf5d4ab824 100644 --- a/framework-docs/modules/ROOT/pages/web/webflux/ann-rest-exceptions.adoc +++ b/framework-docs/modules/ROOT/pages/web/webflux/ann-rest-exceptions.adoc @@ -34,7 +34,7 @@ any `@RequestMapping` method to render an RFC 9457 response. This is processed a already set. - The Jackson JSON and XML message converters use "application/problem+json" or "application/problem+xml" respectively as the producible media types for `ProblemDetail` -to ensure they are favoured for content negotiation. +to ensure they are favored for content negotiation. To enable RFC 9457 responses for Spring WebFlux exceptions and for any `ErrorResponseException`, extend `ResponseEntityExceptionHandler` and declare it as an 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 e87fe4c6f33..f9c4567ad0c 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 @@ -32,9 +32,9 @@ any `@RequestMapping` method to render an RFC 9457 response. This is processed a - The `status` property of `ProblemDetail` determines the HTTP status. - The `instance` property of `ProblemDetail` is set from the current URL path, if not already set. -0- The Jackson JSON and XML codecs use "application/problem+json" or +- The Jackson JSON and XML codecs use "application/problem+json" or "application/problem+xml" respectively as the producible media types for `ProblemDetail` -to ensure they are favoured for content negotiation. +to ensure they are favored for content negotiation. To enable RFC 9457 responses for Spring MVC exceptions and for any `ErrorResponseException`, extend `ResponseEntityExceptionHandler` and declare it as an