|
@@ -27,6 +27,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|
protected void configure(HttpSecurity httpSecurity) throws Exception {
|
|
protected void configure(HttpSecurity httpSecurity) throws Exception {
|
|
ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry registry = httpSecurity
|
|
ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry registry = httpSecurity
|
|
.authorizeRequests();
|
|
.authorizeRequests();
|
|
|
|
+ //不需要保护的资源路径允许访问
|
|
for (String url : ignoreUrlsConfig().getUrls()) {
|
|
for (String url : ignoreUrlsConfig().getUrls()) {
|
|
registry.antMatchers(url).permitAll();
|
|
registry.antMatchers(url).permitAll();
|
|
}
|
|
}
|