"git@ustchcs.com:gujinli1118/JSH_ERP.git" did not exist on "4fe50cf52af862d6ea47cad0c0b1c817cf9e8c80"
Commit 28dc389f authored by macro's avatar macro
Browse files

Update SecurityConfig.java

parent 91f7c34a
...@@ -27,6 +27,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -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();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment