• Brian Clozel's avatar
    Support error conventions in Spring WebFlux · 68db43cf
    Brian Clozel authored
    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
    68db43cf
Name
Last commit
Last update
..
error Loading commit data...
prefix Loading commit data...
data-dialect.html Loading commit data...
home.ftl Loading commit data...
home.html Loading commit data...
home.tpl Loading commit data...
home.vm Loading commit data...
included.tpl Loading commit data...
included_fr.tpl Loading commit data...
includes.tpl Loading commit data...
java8time-dialect.html Loading commit data...
layout.html Loading commit data...
message.ftl Loading commit data...
message.html Loading commit data...
message.tpl Loading commit data...
message.vm Loading commit data...
suffixed.freemarker Loading commit data...
suffixed.groovytemplate Loading commit data...
suffixed.thymeleaf Loading commit data...
template.html Loading commit data...
view.html Loading commit data...