Merge branch '5.2.x'
# Conflicts: # build.gradle # spring-tx/src/main/java/org/springframework/dao/support/PersistenceExceptionTranslationInterceptor.java # spring-web/src/main/java/org/springframework/web/bind/support/WebRequestDataBinder.java # spring-webmvc/src/main/java/org/springframework/web/servlet/HandlerExecutionChain.java # spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractHandlerMapping.java
This commit is contained in:
@@ -444,8 +444,8 @@ public abstract class AbstractHandlerMapping extends WebApplicationObjectSupport
|
||||
|
||||
/**
|
||||
* Return the adapted interceptors as {@link HandlerInterceptor} array.
|
||||
* @return the array of {@link HandlerInterceptor HandlerInterceptors}, or
|
||||
* {@code null} if none
|
||||
* @return the array of {@link HandlerInterceptor HandlerInterceptor}s,
|
||||
* or {@code null} if none
|
||||
*/
|
||||
@Nullable
|
||||
protected final HandlerInterceptor[] getAdaptedInterceptors() {
|
||||
@@ -572,7 +572,7 @@ public abstract class AbstractHandlerMapping extends WebApplicationObjectSupport
|
||||
* Build a {@link HandlerExecutionChain} for the given handler, including
|
||||
* applicable interceptors.
|
||||
* <p>The default implementation builds a standard {@link HandlerExecutionChain}
|
||||
* with the given handler, the handler mappings common interceptors, and any
|
||||
* with the given handler, the common interceptors of the handler mapping, and any
|
||||
* {@link MappedInterceptor MappedInterceptors} matching to the current request URL. Interceptors
|
||||
* are added in the order they were registered. Subclasses may override this
|
||||
* in order to extend/rearrange the list of interceptors.
|
||||
@@ -652,7 +652,7 @@ public abstract class AbstractHandlerMapping extends WebApplicationObjectSupport
|
||||
HandlerExecutionChain chain, @Nullable CorsConfiguration config) {
|
||||
|
||||
if (CorsUtils.isPreFlightRequest(request)) {
|
||||
List<HandlerInterceptor> interceptors = chain.getInterceptorList();
|
||||
HandlerInterceptor[] interceptors = chain.getInterceptors();
|
||||
return new HandlerExecutionChain(new PreFlightHandler(config), interceptors);
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
Reference in New Issue
Block a user