From 92e8668188691c03e791f13f1eecb3530d97f3ca Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Thu, 6 Jul 2023 13:40:39 +0900 Subject: [PATCH] =?UTF-8?q?requestHandlers()=20->=20MvcConfig=EB=A1=9C=20?= =?UTF-8?q?=EC=9D=B4=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/foundation/boot/CommonConfig.java | 9 --------- src/main/java/cokr/xit/foundation/boot/MvcConfig.java | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/cokr/xit/foundation/boot/CommonConfig.java b/src/main/java/cokr/xit/foundation/boot/CommonConfig.java index a74587a..cbe96a5 100644 --- a/src/main/java/cokr/xit/foundation/boot/CommonConfig.java +++ b/src/main/java/cokr/xit/foundation/boot/CommonConfig.java @@ -15,7 +15,6 @@ import org.springframework.context.annotation.Configuration; import org.springframework.context.support.ReloadableResourceBundleMessageSource; import org.springframework.util.AntPathMatcher; 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.databind.ObjectMapper; @@ -73,14 +72,6 @@ public class CommonConfig { return new LeaveaTrace(); } - /**RequestMappingHandlerMapping을 반환한다. - * @return RequestMappingHandlerMapping - */ - @Bean - public RequestMappingHandlerMapping requestHandlers() { - return new RequestMappingHandlerMapping(); - } - private Yml yml = new Yml("application.yml", "application.yml"); /**application.yml의 설정 내용을 읽어 MessageSource Bean을 설정하여 반환한다. diff --git a/src/main/java/cokr/xit/foundation/boot/MvcConfig.java b/src/main/java/cokr/xit/foundation/boot/MvcConfig.java index 378728e..99d2da6 100644 --- a/src/main/java/cokr/xit/foundation/boot/MvcConfig.java +++ b/src/main/java/cokr/xit/foundation/boot/MvcConfig.java @@ -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.ResourceHandlerRegistry; 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.JstlView; import org.springframework.web.servlet.view.UrlBasedViewResolver; @@ -111,4 +112,12 @@ public class MvcConfig implements WebMvcConfigurer { bean.setMaxInMemorySize(oneGB); return bean; } + + /**RequestMappingHandlerMapping을 반환한다. + * @return RequestMappingHandlerMapping + */ + @Bean + public RequestMappingHandlerMapping requestHandlers() { + return new RequestMappingHandlerMapping(); + } } \ No newline at end of file