Spring 5 Reactive - WebExceptionHandler is not getting called
I have tried all 3 solutions suggested in what is the right way to handle errors in spring-webflux , but WebExceptionHandler is not getting called. I am using Spring Boot 2.0.0.M7 . Github repo here @Configuration class RoutesConfiguration { @Autowired private lateinit var testService: TestService @Autowired private lateinit var globalErrorHandler: GlobalErrorHandler @Bean fun routerFunction(): RouterFunction<ServerResponse> = router { ("/test").nest { GET("/") { ServerResponse.ok().body(testService.test()) } } } } @Component class GlobalErrorHandler() : WebExceptionHandler { companion object