Skip to content

Commit 8703cdd

Browse files
committed
ResponseStatusExceptionHandler is ordered at 0
Issue: SPR-15134
1 parent b609f3a commit 8703cdd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import org.springframework.context.ApplicationContextAware;
3030
import org.springframework.context.annotation.Bean;
3131
import org.springframework.core.ReactiveAdapterRegistry;
32+
import org.springframework.core.annotation.Order;
3233
import org.springframework.core.codec.ByteArrayDecoder;
3334
import org.springframework.core.codec.ByteArrayEncoder;
3435
import org.springframework.core.codec.ByteBufferDecoder;
@@ -128,6 +129,7 @@ public DispatcherHandler webHandler() {
128129
}
129130

130131
@Bean
132+
@Order(0)
131133
public WebExceptionHandler responseStatusExceptionHandler() {
132134
return new ResponseStatusExceptionHandler();
133135
}

0 commit comments

Comments
 (0)