继承 WebMvcConfigurer 接口
重写
@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(authCheckHandler);
WebMvcConfigurer.super.addInterceptors(registry);
}
扫描二维码,在手机上阅读!
继承 WebMvcConfigurer 接口
重写
@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(authCheckHandler);
WebMvcConfigurer.super.addInterceptors(registry);
}
评论