InterceptorRegistry类及 addInterceptor方法
Class InterceptorRegistry
public class InterceptorRegistry extends Object
帮助配置映射拦截器列表。
Helps with configuring a list of mapped interceptors.
addInterceptor
public InterceptorRegistration addInterceptor(HandlerInterceptor interceptor)
添加提供的HandlerInterceptor。
Adds the provided HandlerInterceptor.
Parameters:
- interceptor - the interceptor to add
Returns:
InterceptorRegistration 允许您选择性地进一步配置注册的拦截器,例如添加它应该适用的 URL 模式。
an InterceptorRegistration that allows you optionally configure the registered interceptor further for example adding URL patterns it should apply to.

浙公网安备 33010602011771号