From 2d27b24029adafdbfc5703b38a519d65beda6a68 Mon Sep 17 00:00:00 2001
From: heheng <heheng@123456>
Date: Wed, 20 Nov 2024 16:23:23 +0800
Subject: [PATCH] 更改
---
expert-framework/src/main/java/com/gkhy/framework/config/SecurityConfig.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/expert-framework/src/main/java/com/gkhy/framework/config/SecurityConfig.java b/expert-framework/src/main/java/com/gkhy/framework/config/SecurityConfig.java
index df59735..61e45bb 100644
--- a/expert-framework/src/main/java/com/gkhy/framework/config/SecurityConfig.java
+++ b/expert-framework/src/main/java/com/gkhy/framework/config/SecurityConfig.java
@@ -111,10 +111,10 @@
.authorizeHttpRequests((requests) -> {
permitAllUrl.getUrls().forEach(url -> requests.antMatchers(url).permitAll());
// 对于登录login 注册register 验证码captchaImage 允许匿名访问
- requests.antMatchers("/login", "/register", "/captchaImage").permitAll()
+ requests.antMatchers("/login", "/register", "/captchaImage","/system/expert_info/**").permitAll()
// 静态资源,可匿名访问
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
- .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
+ .antMatchers("/doc.html","/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
// 除上面外的所有请求全部需要鉴权认证
.anyRequest().authenticated();
})
--
Gitblit v1.9.2