requestHandlers() -> MvcConfig로 이동

master
mjkhan21 1 year ago
parent 73199eab12
commit 92e8668188

@ -15,7 +15,6 @@ import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ReloadableResourceBundleMessageSource; import org.springframework.context.support.ReloadableResourceBundleMessageSource;
import org.springframework.util.AntPathMatcher; import org.springframework.util.AntPathMatcher;
import org.springframework.web.servlet.i18n.SessionLocaleResolver; import org.springframework.web.servlet.i18n.SessionLocaleResolver;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
import com.fasterxml.jackson.core.JsonParser.Feature; import com.fasterxml.jackson.core.JsonParser.Feature;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
@ -73,14 +72,6 @@ public class CommonConfig {
return new LeaveaTrace(); return new LeaveaTrace();
} }
/**RequestMappingHandlerMapping .
* @return RequestMappingHandlerMapping
*/
@Bean
public RequestMappingHandlerMapping requestHandlers() {
return new RequestMappingHandlerMapping();
}
private Yml yml = new Yml("application.yml", "application.yml"); private Yml yml = new Yml("application.yml", "application.yml");
/**application.yml MessageSource Bean . /**application.yml MessageSource Bean .

@ -11,6 +11,7 @@ import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
import org.springframework.web.servlet.view.BeanNameViewResolver; import org.springframework.web.servlet.view.BeanNameViewResolver;
import org.springframework.web.servlet.view.JstlView; import org.springframework.web.servlet.view.JstlView;
import org.springframework.web.servlet.view.UrlBasedViewResolver; import org.springframework.web.servlet.view.UrlBasedViewResolver;
@ -111,4 +112,12 @@ public class MvcConfig implements WebMvcConfigurer {
bean.setMaxInMemorySize(oneGB); bean.setMaxInMemorySize(oneGB);
return bean; return bean;
} }
/**RequestMappingHandlerMapping .
* @return RequestMappingHandlerMapping
*/
@Bean
public RequestMappingHandlerMapping requestHandlers() {
return new RequestMappingHandlerMapping();
}
} }
Loading…
Cancel
Save