From 474c5df6acfda1856d3473ced7c39fd39868438d Mon Sep 17 00:00:00 2001 From: Philip Bolting Date: Fri, 9 Jan 2026 11:07:38 +0100 Subject: [PATCH] Fix typo in Servlet Web Applications documentation GH-48201 moved server.error properties to spring.web.error Signed-off-by: Philip Bolting --- .../src/docs/antora/modules/reference/pages/web/servlet.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/web/servlet.adoc b/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/web/servlet.adoc index f01c490099bd..78ca3f7aea07 100644 --- a/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/web/servlet.adoc +++ b/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/web/servlet.adoc @@ -342,7 +342,7 @@ By default, Spring Boot provides an `/error` mapping that handles all errors in For machine clients, it produces a JSON response with details of the error, the HTTP status, and the exception message. For browser clients, there is a "`whitelabel`" error view that renders the same data in HTML format (to customize it, add a javadoc:org.springframework.web.servlet.View[] that resolves to `error`). -There are a number of `server.error` properties that can be set if you want to customize the default error handling behavior. +There are a number of `spring.web.error` properties that can be set if you want to customize the default error handling behavior. See the xref:appendix:application-properties/index.adoc#appendix.application-properties.server[Server Properties] section of the Appendix. To replace the default behavior completely, you can implement javadoc:org.springframework.boot.webmvc.error.ErrorController[] and register a bean definition of that type or add a bean of type javadoc:org.springframework.boot.webmvc.error.ErrorAttributes[] to use the existing mechanism but replace the contents.