From be592f2395a1f965c6c5146684f82046d7b9321f Mon Sep 17 00:00:00 2001 From: heminjian502 Date: Fri, 13 Jan 2023 10:10:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3=E4=BC=A0to?= =?UTF-8?q?ken=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/framework/config/SecurityConfig.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java index 7a79d67..eba245b 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java @@ -113,9 +113,9 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter .antMatchers("/*/api-docs").anonymous() .antMatchers("/druid/**").anonymous() .antMatchers("/wechat/login/**").anonymous() - .antMatchers("/api/app/hospital/list").anonymous() - .antMatchers("/api/app/version/info").anonymous() - .antMatchers("/common/upload").anonymous() + .antMatchers("/api/app/hospital/list").permitAll() + .antMatchers("/api/app/version/info").permitAll() + .antMatchers("/common/upload").permitAll() // 除上面外的所有请求全部需要鉴权认证 .anyRequest().authenticated() .and()