Merge branch '6.1.x'
This commit is contained in:
@@ -18,6 +18,7 @@ package org.springframework.web.reactive.handler;
|
||||
|
||||
import org.springframework.core.annotation.AnnotatedElementUtils;
|
||||
import org.springframework.http.HttpStatusCode;
|
||||
import org.springframework.lang.Nullable;
|
||||
import org.springframework.web.bind.annotation.ResponseStatus;
|
||||
import org.springframework.web.server.handler.ResponseStatusExceptionHandler;
|
||||
|
||||
@@ -38,6 +39,7 @@ import org.springframework.web.server.handler.ResponseStatusExceptionHandler;
|
||||
public class WebFluxResponseStatusExceptionHandler extends ResponseStatusExceptionHandler {
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
protected HttpStatusCode determineStatus(Throwable ex) {
|
||||
HttpStatusCode statusCode = super.determineStatus(ex);
|
||||
if (statusCode == null) {
|
||||
|
||||
@@ -66,6 +66,7 @@ public class RequestAttributeMethodArgumentResolver extends AbstractNamedValueSy
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
protected Object resolveNamedValue(String name, MethodParameter parameter, ServerWebExchange exchange) {
|
||||
Object value = exchange.getAttribute(name);
|
||||
ReactiveAdapter toAdapter = getAdapterRegistry().getAdapter(parameter.getParameterType());
|
||||
|
||||
Reference in New Issue
Block a user