Browse Source

ResponseStatusExceptionHandler is ordered at 0

Issue: SPR-15134
pull/1288/merge
Rossen Stoyanchev 9 years ago
parent
commit
8703cdd9cb
  1. 2
      spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfigurationSupport.java

2
spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfigurationSupport.java

@ -29,6 +29,7 @@ import org.springframework.context.ApplicationContext; @@ -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 @@ -128,6 +129,7 @@ public class WebReactiveConfigurationSupport implements ApplicationContextAware
}
@Bean
@Order(0)
public WebExceptionHandler responseStatusExceptionHandler() {
return new ResponseStatusExceptionHandler();
}

Loading…
Cancel
Save