接口的使用
org.springframework.web.servlet.AsyncHandlerInterceptor
使用AsyncHandlerInterceptor的程序包 程序包 说明 org.springframework.web.servlet.handler Provides standard HandlerMapping implementations, including abstract base classes for custom implementations.org.springframework.web.servlet.i18n Locale support classes for Spring's web MVC framework.org.springframework.web.servlet.resource Support classes for serving static resources.org.springframework.web.servlet.theme Theme support classes for Spring's web MVC framework.org.springframework.web.servlet.handler中AsyncHandlerInterceptor的使用
实现AsyncHandlerInterceptor的org.springframework.web.servlet.handler中的类 修饰符和类型 类 说明 classConversionServiceExposingInterceptorInterceptor that places the configuredConversionServicein request scope so it's available during request processing.classHandlerInterceptorAdapterAbstract adapter class for theAsyncHandlerInterceptorinterface, for simplified implementation of pre-only/post-only interceptors.classUserRoleAuthorizationInterceptorInterceptor that checks the authorization of the current user via the user's roles, as evaluated by HttpServletRequest's isUserInRole method.classWebRequestHandlerInterceptorAdapterAdapter that implements the Servlet HandlerInterceptor interface and wraps an underlying WebRequestInterceptor.org.springframework.web.servlet.i18n中AsyncHandlerInterceptor的使用
实现AsyncHandlerInterceptor的org.springframework.web.servlet.i18n中的类 修饰符和类型 类 说明 classLocaleChangeInterceptorInterceptor that allows for changing the current locale on every request, via a configurable request parameter (default parameter name: "locale").org.springframework.web.servlet.resource中AsyncHandlerInterceptor的使用
实现AsyncHandlerInterceptor的org.springframework.web.servlet.resource中的类 修饰符和类型 类 说明 classResourceUrlProviderExposingInterceptorAn interceptor that exposes theResourceUrlProviderinstance it is configured with as a request attribute.org.springframework.web.servlet.theme中AsyncHandlerInterceptor的使用
实现AsyncHandlerInterceptor的org.springframework.web.servlet.theme中的类 修饰符和类型 类 说明 classThemeChangeInterceptorInterceptor that allows for changing the current theme on every request, via a configurable request parameter (default parameter name: "theme").