From d329b0c8b0e1ef36ddad16fb35e71599cbb0fa01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=9D=B0?= Date: Sat, 29 Dec 2018 09:59:26 +0800 Subject: [PATCH] update README.md --- README.md | 2 +- src/main/java/me/zhengjie/core/config/WebSecurityConfig.java | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 98c4f7699..4b7153876 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 04d748ccd..8e075585c 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 @@ protected void configure(HttpSecurity httpSecurity) throws Exception { // 不创建会话 .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and() - .authorizeRequests() .antMatchers("/auth/**").permitAll() @@ -87,7 +86,6 @@ protected void configure(HttpSecurity httpSecurity) throws Exception { // swagger end .antMatchers("/test/**").anonymous() .antMatchers(HttpMethod.OPTIONS, "/**").anonymous() - // 所有请求都需要认证 .anyRequest().authenticated(); @@ -104,7 +102,6 @@ public void configure(WebSecurity web) throws Exception { HttpMethod.POST, authenticationPath ) - // allow anonymous resource requests .and() .ignoring()