From 2c2cdb4658c6457957003ea982cc7c9adb7e7083 Mon Sep 17 00:00:00 2001 From: wu Date: Wed, 13 Sep 2023 13:51:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9D=A5=E6=BA=90=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E5=92=8C=E5=AE=89=E5=85=A8=E7=9B=91=E6=B5=8B=E5=8F=97?= =?UTF-8?q?=E6=94=BB=E5=87=BB=E7=BB=9F=E8=AE=A1=E5=8F=96=E6=B6=88=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ruoyi/framework/config/SecurityConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 253d131..874ff6b 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 @@ -121,11 +121,11 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { // 打包服务器需要无token访问 // .antMatchers("/system/dict/data/type/**").anonymous() .antMatchers("/*/api-docs").anonymous() - .antMatchers("/zongzhi/tj/*").anonymous() - .antMatchers("/zongzhi/sourceTj/*").anonymous() .antMatchers("/*/api-docs").anonymous() // 静态资源,可匿名访问 .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll() + .antMatchers("/zongzhi/tj/*").permitAll() + .antMatchers("/zongzhi/sourceTj/*").permitAll() .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**", "/zongzhi/**","/system/dict/data/**").permitAll() // 除上面外的所有请求全部需要鉴权认证 .anyRequest().authenticated()