|
2 | 2 |
|
3 | 3 | package com.k2.core;
|
4 | 4 |
|
5 |
| -import org.springframework.web.servlet.config.annotation |
6 |
| - .ResourceHandlerRegistration; |
7 |
| -import org.springframework.web.servlet.config.annotation |
8 |
| - .ResourceHandlerRegistry; |
9 |
| -import org.springframework.web.servlet.config.annotation |
10 |
| - .WebMvcConfigurationSupport; |
11 |
| -import org.springframework.web.servlet.mvc.method.annotation |
12 |
| - .RequestMappingHandlerAdapter; |
13 |
| -import org.springframework.web.servlet.mvc.method.annotation |
14 |
| - .RequestMappingHandlerMapping; |
15 |
| - |
16 | 5 | import java.util.List;
|
17 | 6 |
|
18 | 7 | import org.springframework.beans.factory.annotation.Autowired;
|
19 | 8 | import org.springframework.beans.factory.annotation.Value;
|
20 | 9 | import org.springframework.context.ApplicationContext;
|
21 | 10 | import org.springframework.context.annotation.Bean;
|
22 | 11 | import org.springframework.context.annotation.Configuration;
|
23 |
| -import org.springframework.context.support |
24 |
| - .PropertySourcesPlaceholderConfigurer; |
| 12 | +import org.springframework.context.support.PropertySourcesPlaceholderConfigurer; |
25 | 13 | import org.springframework.format.FormatterRegistry;
|
26 | 14 | import org.springframework.format.datetime.standard.DateTimeFormatterRegistrar;
|
27 | 15 | import org.springframework.http.converter.HttpMessageConverter;
|
| 16 | +import org.springframework.web.servlet.config.annotation |
| 17 | + .ResourceHandlerRegistration; |
| 18 | +import org.springframework.web.servlet.config.annotation |
| 19 | + .ResourceHandlerRegistry; |
| 20 | +import org.springframework.web.servlet.config.annotation |
| 21 | + .WebMvcConfigurationSupport; |
| 22 | +import org.springframework.web.servlet.mvc.method.annotation |
| 23 | + .RequestMappingHandlerAdapter; |
| 24 | +import org.springframework.web.servlet.mvc.method.annotation |
| 25 | + .RequestMappingHandlerMapping; |
28 | 26 |
|
29 | 27 | /** Custom configuration for the dispatcher servlet application context
|
30 | 28 | *
|
@@ -85,8 +83,8 @@ protected RequestMappingHandlerMapping createRequestMappingHandlerMapping() {
|
85 | 83 | @Bean
|
86 | 84 | public RequestMappingHandlerAdapter requestMappingHandlerAdapter(
|
87 | 85 | final List<HttpMessageConverter<?>> converters) {
|
88 |
| - RequestMappingHandlerAdapter adapter; |
89 |
| - adapter = super.requestMappingHandlerAdapter(); |
| 86 | + RequestMappingHandlerAdapter adapter = |
| 87 | + super.createRequestMappingHandlerAdapter(); |
90 | 88 |
|
91 | 89 | if (!converters.isEmpty()) {
|
92 | 90 | adapter.setMessageConverters(converters);
|
|
0 commit comments