spring-boot/spring-boot-project
Brian Clozel 68db43cf44 Support error conventions in Spring WebFlux
This commit adds support for Spring Boot error conventions with WebFlux.
The Spring MVC support for that is based on an `Controller` that's
mapped on a specific `"/error"` path and configured as an error page in
the Servlet container. With WebFlux, this support leverages a
`WebExceptionHandler`, which catches exceptions flowing through the
reactive pipeline and handles them.

The `DefaultErrorWebExceptionHandler` supports the following:
* return a JSON error response to machine clients
* return error HTML views (templates, static or default HTML view)

One can customize the error information by contributing an
`ErrorAttributes` bean to the application context.

Spring Boot provides an `ErrorWebExceptionHandler` marker interface and a
base implementation that provides high level constructs to handle
errors, based on the Spring WebFlux functional flavor.
The error handling logic can be completely changed by providing a custom
`RouterFunction` there.

Fixes gh-8625
2017-10-16 21:55:05 +02:00
..
spring-boot Build against Spring Framework 5.0.1.BUILD-SNAPSHOT 2017-10-12 15:52:11 +02:00
spring-boot-actuator Test metrics endpoint using tag available on Java 9 as well as 8 2017-10-11 16:50:23 +01:00
spring-boot-actuator-autoconfigure Change @ConditionalOnClass from Servlet to Flux 2017-10-10 21:45:24 -07:00
spring-boot-autoconfigure Support error conventions in Spring WebFlux 2017-10-16 21:55:05 +02:00
spring-boot-cli Update copyright year for changed files 2017-10-10 11:56:13 -07:00
spring-boot-dependencies Merge branch '1.5.x' 2017-10-13 12:27:51 +01:00
spring-boot-devtools Update copyright year for changed files 2017-10-10 11:56:13 -07:00
spring-boot-docs Support error conventions in Spring WebFlux 2017-10-16 21:55:05 +02:00
spring-boot-parent Upgrade Maven plugins 2017-10-04 16:34:43 -07:00
spring-boot-starters Fix POMs for the updated build/release process 2017-10-04 16:34:38 -07:00
spring-boot-test Update copyright year for changed files 2017-10-10 11:56:13 -07:00
spring-boot-test-autoconfigure Update copyright year for changed files 2017-10-10 11:56:13 -07:00
spring-boot-tools Fix broken documentation links 2017-10-11 13:30:35 -07:00
pom.xml Re-order modules so that spring--boot-cli is later 2017-10-05 18:17:25 -07:00