From ee29eb47f22aceae263cdbda24560101727aa177 Mon Sep 17 00:00:00 2001 From: huangdeliang Date: Wed, 28 Oct 2020 12:28:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3=E6=9D=83?= =?UTF-8?q?=E9=99=90?= 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 71090a640..fcc5064ad 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 @@ -96,7 +96,9 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { // 对于登录login 验证码captchaImage 允许匿名访问 .antMatchers( "/login", - "/captchaImage" + "/captchaImage", + "/custom/contract/sign", + "/custom/contract/file/**" ).anonymous() .antMatchers( HttpMethod.GET, @@ -113,8 +115,6 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { .antMatchers("/webjars/**").anonymous() .antMatchers("/*/api-docs").anonymous() .antMatchers("/druid/**").anonymous() - .antMatchers("/custom/contract/sign").anonymous() - .antMatchers("/custom/contract/file/**").anonymous() // 除上面外的所有请求全部需要鉴权认证 .anyRequest().authenticated()