Browse Source

Fix typo in Spring MVC error responses documentation

Closes gh-34552

Signed-off-by: Vedran Pavic <vedran@vedranpavic.com>
pull/34656/head
Vedran Pavic 10 months ago committed by Sam Brannen
parent
commit
94d29bac9f
  1. 2
      framework-docs/modules/ROOT/pages/web/webmvc/mvc-ann-rest-exceptions.adoc

2
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`, "application/problem+json" over "application/json" when rendering a `ProblemDetail`,
and also falls back on it if no compatible media type is found. 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 `ErrorResponseException`, extend `ResponseEntityExceptionHandler` and declare it as an
xref:web/webmvc/mvc-controller/ann-advice.adoc[@ControllerAdvice] in Spring configuration. The handler xref:web/webmvc/mvc-controller/ann-advice.adoc[@ControllerAdvice] in Spring configuration. The handler
has an `@ExceptionHandler` method that handles any `ErrorResponse` exception, which has an `@ExceptionHandler` method that handles any `ErrorResponse` exception, which

Loading…
Cancel
Save