From c644eb979f385bd03d2e45ae762c67275d55a5f6 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Tue, 10 Jul 2018 12:33:28 +0200 Subject: [PATCH] DATAREST-1259 - Removed obsolete bean definition for HttpRequestHandlerAdapter. --- .../webmvc/config/RepositoryRestMvcConfiguration.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.java index c9758cb3c..ed555780f 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.java @@ -152,7 +152,6 @@ import org.springframework.web.method.support.HandlerMethodArgumentResolver; import org.springframework.web.servlet.HandlerExceptionResolver; import org.springframework.web.servlet.HandlerMapping; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; -import org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter; import org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver; import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter; import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice; @@ -608,16 +607,6 @@ public class RepositoryRestMvcConfiguration extends HateoasAwareSpringDataWebCon return handlerAdapter; } - /** - * {@link HttpRequestHandlerAdapter} to handle CORS preflight requests. - * - * @return - */ - @Bean - public HttpRequestHandlerAdapter httpRequestHandlerAdapter() { - return new HttpRequestHandlerAdapter(); - } - /** * The {@link HandlerMapping} to delegate requests to Spring Data REST controllers. Sets up a * {@link DelegatingHandlerMapping} to make sure manually implemented {@link BasePathAwareController} instances that