接口的使用
org.springframework.web.context.request.WebRequestInterceptor
使用WebRequestInterceptor的程序包 程序包 说明 org.springframework.orm.hibernate5.support Classes supporting theorg.springframework.orm.hibernate5package.org.springframework.orm.jpa.support Classes supporting theorg.springframework.orm.jpapackage.org.springframework.web.context.request Support for generic request context holding, in particular for scoping of application objects per HTTP request or HTTP session.org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.servlet.handler Provides standard HandlerMapping implementations, including abstract base classes for custom implementations.org.springframework.orm.hibernate5.support中WebRequestInterceptor的使用
实现WebRequestInterceptor的org.springframework.orm.hibernate5.support中的类 修饰符和类型 类 说明 classOpenSessionInViewInterceptorSpring web request interceptor that binds a HibernateSessionto the thread for the entire processing of the request.org.springframework.orm.jpa.support中WebRequestInterceptor的使用
实现WebRequestInterceptor的org.springframework.orm.jpa.support中的类 修饰符和类型 类 说明 classOpenEntityManagerInViewInterceptorSpring web request interceptor that binds a JPA EntityManager to the thread for the entire processing of the request.org.springframework.web.context.request中WebRequestInterceptor的使用
org.springframework.web.context.request中WebRequestInterceptor的子接口 修饰符和类型 接口 说明 interfaceAsyncWebRequestInterceptorExtendsWebRequestInterceptorwith a callback method invoked during asynchronous request handling.org.springframework.web.servlet.config.annotation中WebRequestInterceptor的使用
参数类型为WebRequestInterceptor的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 InterceptorRegistrationInterceptorRegistry. addWebRequestInterceptor(WebRequestInterceptor interceptor)Adds the providedWebRequestInterceptor.org.springframework.web.servlet.handler中WebRequestInterceptor的使用
参数类型为WebRequestInterceptor的org.springframework.web.servlet.handler中的构造器 构造器 说明 MappedInterceptor(String[] includePatterns, String[] excludePatterns, WebRequestInterceptor interceptor)Create a new MappedInterceptor instance.MappedInterceptor(String[] includePatterns, WebRequestInterceptor interceptor)Create a new MappedInterceptor instance.WebRequestHandlerInterceptorAdapter(WebRequestInterceptor requestInterceptor)Create a new WebRequestHandlerInterceptorAdapter for the given WebRequestInterceptor.