I\'ve been doing some research using spring-webflux and I like to understand what should be the right way to handle errors using Router Functions.
I\'ve created an s
What I am currently doing is simply providing a bean my WebExceptionHandler :
@Bean
@Order(0)
public WebExceptionHandler responseStatusExceptionHandler() {
return new MyWebExceptionHandler();
}
The advantage than creating the HttpHandler
myself is that I have a better integration with WebFluxConfigurer
if I provide my own ServerCodecConfigurer
for example or using SpringSecurity