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()