From 8703cdd9cbb3b71b7c0caf35eeab246cc036ffd8 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Wed, 18 Jan 2017 20:57:22 -0500 Subject: [PATCH] ResponseStatusExceptionHandler is ordered at 0 Issue: SPR-15134 --- .../web/reactive/config/WebReactiveConfigurationSupport.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfigurationSupport.java b/spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfigurationSupport.java index 536d457b10e..202bd8997a7 100644 --- a/spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfigurationSupport.java +++ b/spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfigurationSupport.java @@ -29,6 +29,7 @@ import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import org.springframework.context.annotation.Bean; import org.springframework.core.ReactiveAdapterRegistry; +import org.springframework.core.annotation.Order; import org.springframework.core.codec.ByteArrayDecoder; import org.springframework.core.codec.ByteArrayEncoder; import org.springframework.core.codec.ByteBufferDecoder; @@ -128,6 +129,7 @@ public class WebReactiveConfigurationSupport implements ApplicationContextAware } @Bean + @Order(0) public WebExceptionHandler responseStatusExceptionHandler() { return new ResponseStatusExceptionHandler(); }