security报错Refused to apply style MIME-type
在security配置修改 将static路径下的文件夹都加上例如/admin/**
或者加上例 /**/*.html
/**
* security检验忽略的请求,比如静态资源不需要登录的可在本处配置
* @param web
*/
@Override
public void configure(WebSecurity web){
web.ignoring().antMatchers("/admin/**","/assets/**","/blog/**","/common/**","/layuimini/**")
//.antMatchers("/resources/**")
.antMatchers("/**/*.html")
.antMatchers("/**/*.htm")
.antMatchers("/**/*.js")
.antMatchers("/**/*.png")
.antMatchers("/**/*.jpg")
.antMatchers("/favicon.ico")
.antMatchers("/**/*.css")
.antMatchers("/images/**");
}