|
24 | 24 | import java.util.Optional;
|
25 | 25 | import java.util.Set;
|
26 | 26 |
|
| 27 | +import javax.servlet.http.HttpServletRequest; |
| 28 | + |
27 | 29 | import org.springframework.beans.factory.BeanClassLoaderAware;
|
28 | 30 | import org.springframework.beans.factory.BeanFactoryUtils;
|
29 | 31 | import org.springframework.beans.factory.ObjectFactory;
|
|
112 | 114 | import org.springframework.http.MediaType;
|
113 | 115 | import org.springframework.http.converter.HttpMessageConverter;
|
114 | 116 | import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
|
| 117 | +import org.springframework.http.server.ServerHttpRequest; |
115 | 118 | import org.springframework.plugin.core.PluginRegistry;
|
116 | 119 | import org.springframework.util.ClassUtils;
|
117 | 120 | import org.springframework.web.bind.support.ConfigurableWebBindingInitializer;
|
|
120 | 123 | import org.springframework.web.servlet.HandlerExceptionResolver;
|
121 | 124 | import org.springframework.web.servlet.HandlerMapping;
|
122 | 125 | import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
|
123 |
| -import org.springframework.web.servlet.handler.AbstractHandlerMapping; |
124 | 126 | import org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver;
|
125 | 127 | import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter;
|
126 | 128 | import org.springframework.web.util.pattern.PathPatternParser;
|
|
134 | 136 | /**
|
135 | 137 | * Main application configuration for Spring Data REST. To customize how the exporter works, subclass this and override
|
136 | 138 | * any of the {@literal configure*} methods.
|
137 |
| - * <p/> |
| 139 | + * <p> |
138 | 140 | * Any XML files located in the classpath under the {@literal META-INF/spring-data-rest/} path will be automatically
|
139 | 141 | * found and loaded into this {@link org.springframework.context.ApplicationContext}.
|
140 | 142 | *
|
@@ -384,20 +386,13 @@ public BaseUri baseUri(RepositoryRestConfiguration repositoryRestConfiguration)
|
384 | 386 | return new BaseUri(repositoryRestConfiguration.getBasePath());
|
385 | 387 | }
|
386 | 388 |
|
387 |
| - /** |
388 |
| - * {@link org.springframework.beans.factory.config.BeanPostProcessor} to turn beans annotated as |
389 |
| - * {@link org.springframework.data.rest.repository.annotation.RepositoryEventHandler}s. |
390 |
| - * |
391 |
| - * @return |
392 |
| - */ |
393 | 389 | @Bean
|
394 | 390 | public static AnnotatedEventHandlerInvoker annotatedEventHandlerInvoker() {
|
395 | 391 | return new AnnotatedEventHandlerInvoker();
|
396 | 392 | }
|
397 | 393 |
|
398 | 394 | /**
|
399 |
| - * Turns an {@link javax.servlet.http.HttpServletRequest} into a |
400 |
| - * {@link org.springframework.http.server.ServerHttpRequest}. |
| 395 | + * Turns an {@link HttpServletRequest} into a {@link ServerHttpRequest}. |
401 | 396 | *
|
402 | 397 | * @return
|
403 | 398 | */
|
@@ -455,7 +450,6 @@ public ETagArgumentResolver eTagArgumentResolver() {
|
455 | 450 | * configuration into account when generating links.
|
456 | 451 | *
|
457 | 452 | * @return
|
458 |
| - * @throws Exception |
459 | 453 | */
|
460 | 454 | @Bean
|
461 | 455 | public RepositoryEntityLinks entityLinks(ObjectFactory<HateoasPageableHandlerMethodArgumentResolver> pageableResolver, //
|
@@ -604,7 +598,6 @@ public UriListHttpMessageConverter uriListHttpMessageConverter() {
|
604 | 598 | * Special {@link org.springframework.web.servlet.HandlerAdapter} that only recognizes handler methods defined in the
|
605 | 599 | * provided controller classes.
|
606 | 600 | *
|
607 |
| - * @param resourceProcessors {@link ResourceProcessor}s available in the {@link ApplicationContext}. |
608 | 601 | * @return
|
609 | 602 | */
|
610 | 603 | @Bean
|
|
0 commit comments