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