Package com.easydesk.web.config
Class ScreenIdWebConfig
java.lang.Object
com.easydesk.web.config.ScreenIdWebConfig
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration
public class ScreenIdWebConfig
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
이 데모 앱의 인터셉터 등록용 설정.
- ScreenAccessInterceptor : 컨트롤러 진입 전(preHandle) 화면 접근 권한 검사
- ScreenIdInterceptor : 렌더링 직전(postHandle) screenId / 디버그 정보를 모델에 추가
-
Constructor Summary
ConstructorsConstructorDescriptionScreenIdWebConfig(ScreenIdInterceptor screenIdInterceptor, ScreenAccessInterceptor screenAccessInterceptor) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addErrorResponseInterceptors, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
ScreenIdWebConfig
public ScreenIdWebConfig(ScreenIdInterceptor screenIdInterceptor, ScreenAccessInterceptor screenAccessInterceptor)
-
-
Method Details
-
addInterceptors
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) - Specified by:
addInterceptorsin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-