HandlerResult returned from a HandlerAdapter can expose a function for error handling based on some handler-specific mechanism. This error function is called if: • The handler (for example, @Controller) fails. • The handling of the handler return value through a HandlerResultHandler fails. The error function can change the response (for example, to an error status), as long as an error signal occurs before 1.5.1. Overview Web MVC In WebFlux.fn, an HTTP request is handled with a HandlerFunction: a function that takes ServerRequest and returns a delayed ServerResponse (i.e. Mono). Both
0 码力 |
182 页 |
2.52 MB
| 1 年前 3