diff --git a/README.md b/README.md index 98c4f769..4b715387 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ - 系统日志 记录用户访问监控异常信息 - 实时控制台 显示logback实时日志 - redis管理 将redis的操作可视化,提供对redis的基本操作 -- redis限流 对系统的流量进行控制,由[https://github.com/everhopingandwaiting](everhopingandwaiting)提供 +- redis限流 对系统的流量进行控制,由[everhopingandwaiting](https://github.com/everhopingandwaiting)提供 - SQL监控 采用 druid 监控数据库访问性能 - 三方工具: 邮件工具,sm.ms免费图床 - 富文本编辑器 diff --git a/src/main/java/me/zhengjie/core/config/WebSecurityConfig.java b/src/main/java/me/zhengjie/core/config/WebSecurityConfig.java index 04d748cc..8e075585 100644 --- a/src/main/java/me/zhengjie/core/config/WebSecurityConfig.java +++ b/src/main/java/me/zhengjie/core/config/WebSecurityConfig.java @@ -73,7 +73,6 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { // 不创建会话 .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and() - .authorizeRequests() .antMatchers("/auth/**").permitAll() @@ -87,7 +86,6 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { // swagger end .antMatchers("/test/**").anonymous() .antMatchers(HttpMethod.OPTIONS, "/**").anonymous() - // 所有请求都需要认证 .anyRequest().authenticated(); @@ -104,7 +102,6 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { HttpMethod.POST, authenticationPath ) - // allow anonymous resource requests .and() .ignoring()