这是我的拦截器代码
@Override
public void addInterceptors(InterceptorRegistry registry) {
//拦截规则:除了login,其他都拦截判断
registry.addInterceptor(new MyInterceptor()).addPathPatterns("/**").excludePathPatterns("/index","/**/*.css", "/**/*.js", "/**/*.png", "/**/*.jpg", "/**/*.jpeg");
super.addInterceptors(registry);
}