spring boot 2.x配置自定义拦截器会拦截静态资源解决方法
@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(new InterceptorConfig()).addPathPatterns("/**").
excludePathPatterns("/","/index","/admin/user/login",
"/bootstrap/**","/layui/**");
}
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/3e8390058f64d61219ee412e89e199c6.png)