Skip to content

Commit

Permalink
Merge branch '2.3.x'
Browse files Browse the repository at this point in the history
Closes gh-24408
  • Loading branch information
philwebb committed Dec 9, 2020
2 parents cd5ff6e + 06531b9 commit 3618bdd
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 17 deletions.
Expand Up @@ -14,66 +14,96 @@ Also, you can define your own properties.



== Core Properties

[[common-application-properties-core]]
== Core Properties [[core-properties]]
include::config-docs/core.adoc[]

== Cache Properties


[[common-application-properties-cache]]
== Cache Properties [[cache-properties]]
include::config-docs/cache.adoc[]

== Mail Properties


[[common-application-properties-mail]]
== Mail Properties [[mail-properties]]
include::config-docs/mail.adoc[]

== JSON Properties


[[common-application-properties-json]]
== JSON Properties [[json-properties]]
include::config-docs/json.adoc[]

== Data Properties


[[common-application-properties-data]]
== Data Properties [[data-properties]]
include::config-docs/data.adoc[]

== Transaction Properties


[[common-application-properties-transaction]]
== Transaction Properties [[transaction-properties]]
include::config-docs/transaction.adoc[]

== Data Migration Properties


[[common-application-properties-data-migration]]
== Data Migration Properties [[data-migration-properties]]
include::config-docs/data-migration.adoc[]

== Integration Properties


[[common-application-properties-integration]]
== Integration Properties [[integration-properties]]
include::config-docs/integration.adoc[]

== Web Properties


[[common-application-properties-web]]
== Web Properties [[web-properties]]
include::config-docs/web.adoc[]

== Templating Properties


[[common-application-properties-templating]]
== Templating Properties [[templating-properties]]
include::config-docs/templating.adoc[]

== Server Properties


[[common-application-properties-server]]
== Server Properties [[server-properties]]
include::config-docs/server.adoc[]

== Security Properties


[[common-application-properties-security]]
== Security Properties [[security-properties]]
include::config-docs/security.adoc[]

== RSocket Properties


[[common-application-properties-rsocket]]
== RSocket Properties [[rsocket-properties]]
include::config-docs/rsocket.adoc[]

== Actuator Properties


[[common-application-properties-actuator]]
== Actuator Properties [[actuator-properties]]
include::config-docs/actuator.adoc[]

== Devtools Properties


[[common-application-properties-devtools]]
== Devtools Properties [[devtools-properties]]
include::config-docs/devtools.adoc[]

== Testing Properties


[[common-application-properties-testing]]
== Testing Properties [[testing-properties]]
include::config-docs/testing.adoc[]
Expand Up @@ -2827,6 +2827,10 @@ If you have this problem, you can reorder the classpath in the IDE to place the
By default, Spring Boot provides an `/error` mapping that handles all errors in a sensible way, and it is registered as a "`global`" error page in the servlet container.
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 `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.
See the <<appendix-application-properties.adoc#common-application-properties-server, "`Server Properties`">> section of the Appendix.

To replace the default behavior completely, you can implement `ErrorController` and register a bean definition of that type or add a bean of type `ErrorAttributes` to use the existing mechanism but replace the contents.

TIP: The `BasicErrorController` can be used as a base class for a custom `ErrorController`.
Expand Down

0 comments on commit 3618bdd

Please sign in to comment.