类的使用
org.springframework.web.servlet.config.annotation.InterceptorRegistry
使用InterceptorRegistry的程序包 程序包 说明 org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.servlet.config.annotation中InterceptorRegistry的使用
参数类型为InterceptorRegistry的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 protected void
DelegatingWebMvcConfiguration. addInterceptors(InterceptorRegistry registry)
protected void
WebMvcConfigurationSupport. addInterceptors(InterceptorRegistry registry)
Override this method to add Spring MVC interceptors for pre- and post-processing of controller invocation.default void
WebMvcConfigurer. addInterceptors(InterceptorRegistry registry)
Add Spring MVC lifecycle interceptors for pre- and post-processing of controller method invocations and resource handler requests.void
WebMvcConfigurerAdapter. addInterceptors(InterceptorRegistry registry)
已过时。Add Spring MVC lifecycle interceptors for pre- and post-processing of controller method invocations and resource handler requests.