Fix #27504
The reason of this bug is managment ApplicationContext do not get order in @Order(-1) DefaultErrorWebExceptionHandler
in parent ApplicationContext.
@Order(0) ResponseStatusExceptionHandler
has higher level in ExceptionHandlers.
so let us config ErrorWebFluxAutoConfiguration in ManagementContextConfiguration, the DefaultErrorWebExceptionHandler will be the highest ExceptionHandler and the response body will not be null.
Comment From: wilkinsona
Thanks for the proposal, but I don't think this is the right way to fix this one. An entry listed beneath org.springframework.boot.actuate.autoconfigure.web.ManagementContextConfiguration
should be annotated with @ManagementContextConfiguration
rather than being a plain @Configuration
class. The configuration should also only apply when a separate child management context is being used. Thanks anyway.