# security配置类中添加如下,测试成功
.antMatchers(loadExcludePath()).permitAll()
@Override
public void configure(WebSecurity web) {
web.ignoring().antMatchers(loadExcludePath());
}
private String[] loadExcludePath() {
return new String[]{
"/**/*.css",
"/**/*.js",
"/imgs/**"
};
}