求救求救,SpringBoot拦截器把静态文件给拦截了,但是我已经设置了excludePathPatterns

这是我的拦截器代码

 @Override
    public void addInterceptors(InterceptorRegistry registry) {
        //拦截规则:除了login,其他都拦截判断
        registry.addInterceptor(new MyInterceptor()).addPathPatterns("/**").excludePathPatterns("/index","/**/*.css", "/**/*.js", "/**/*.png", "/**/*.jpg", "/**/*.jpeg");
        super.addInterceptors(registry);
    }
静态资源这样配
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry){
    registry.addResourceHandler("/js/**").addResourceLocations("classpath:/js/");
}

继承 WebSecurityConfigurerAdapter 重写如下方法

 @Override
    public void configure(WebSecurity web) throws Exception {
        web.ignoring().antMatchers("/img/**", "/css/**", "/js/**");
    }

咋解决的 ? 写后缀就是不行

spring boot 不拦截静态资源

通配符不对,**任意多个目录,*任意多个字符