接口的使用
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中的类 修饰符和类型 类 说明 class
ConversionServiceExposingInterceptor
Interceptor that places the configuredConversionService
in request scope so it's available during request processing.class
HandlerInterceptorAdapter
Abstract adapter class for theAsyncHandlerInterceptor
interface, for simplified implementation of pre-only/post-only interceptors.class
UserRoleAuthorizationInterceptor
Interceptor that checks the authorization of the current user via the user's roles, as evaluated by HttpServletRequest's isUserInRole method.class
WebRequestHandlerInterceptorAdapter
Adapter that implements the Servlet HandlerInterceptor interface and wraps an underlying WebRequestInterceptor.org.springframework.web.servlet.i18n中AsyncHandlerInterceptor的使用
实现AsyncHandlerInterceptor的org.springframework.web.servlet.i18n中的类 修饰符和类型 类 说明 class
LocaleChangeInterceptor
Interceptor 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中的类 修饰符和类型 类 说明 class
ResourceUrlProviderExposingInterceptor
An interceptor that exposes theResourceUrlProvider
instance it is configured with as a request attribute.org.springframework.web.servlet.theme中AsyncHandlerInterceptor的使用
实现AsyncHandlerInterceptor的org.springframework.web.servlet.theme中的类 修饰符和类型 类 说明 class
ThemeChangeInterceptor
Interceptor that allows for changing the current theme on every request, via a configurable request parameter (default parameter name: "theme").