ResponseStatusExceptionHandler is ordered at 0

Issue: SPR-15134
This commit is contained in:
Rossen Stoyanchev
2017-01-18 20:57:22 -05:00
parent b609f3a546
commit 8703cdd9cb

View File

@@ -29,6 +29,7 @@ import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware; import org.springframework.context.ApplicationContextAware;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.core.ReactiveAdapterRegistry; import org.springframework.core.ReactiveAdapterRegistry;
import org.springframework.core.annotation.Order;
import org.springframework.core.codec.ByteArrayDecoder; import org.springframework.core.codec.ByteArrayDecoder;
import org.springframework.core.codec.ByteArrayEncoder; import org.springframework.core.codec.ByteArrayEncoder;
import org.springframework.core.codec.ByteBufferDecoder; import org.springframework.core.codec.ByteBufferDecoder;
@@ -128,6 +129,7 @@ public class WebReactiveConfigurationSupport implements ApplicationContextAware
} }
@Bean @Bean
@Order(0)
public WebExceptionHandler responseStatusExceptionHandler() { public WebExceptionHandler responseStatusExceptionHandler() {
return new ResponseStatusExceptionHandler(); return new ResponseStatusExceptionHandler();
} }