From 64fe4241b5e764f91966878eff1720a3b14d6da8 Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期三, 25 十一月 2026 11:50:58 +0800
Subject: [PATCH] 打包文件
---
ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 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 5d75c8b..ca30ceb 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
@@ -21,7 +21,7 @@
/**
* spring security閰嶇疆
- *
+ *
* @author ruoyi
*/
@EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true)
@@ -32,7 +32,7 @@
*/
@Autowired
private UserDetailsService userDetailsService;
-
+
/**
* 璁よ瘉澶辫触澶勭悊绫�
*/
@@ -50,7 +50,7 @@
*/
@Autowired
private JwtAuthenticationTokenFilter authenticationTokenFilter;
-
+
/**
* 璺ㄥ煙杩囨护鍣�
*/
@@ -103,7 +103,7 @@
// 杩囨护璇锋眰
.authorizeRequests()
// 瀵逛簬鐧诲綍login 娉ㄥ唽register 楠岃瘉鐮乧aptchaImage 鍏佽鍖垮悕璁块棶
- .antMatchers("/login","/openidlogin", "/register", "/captchaImage").anonymous()
+ .antMatchers("/login","/openidlogin", "/register", "/captchaImage", "/getToken").anonymous()
.antMatchers(
HttpMethod.GET,
"/",
@@ -113,11 +113,11 @@
"/**/*.js"
// "/profile/**"
).permitAll()
-// .antMatchers("/swagger-ui.html").anonymous()
-// .antMatchers("/swagger-resources/**").anonymous()
-// .antMatchers("/webjars/**").anonymous()
-// .antMatchers("/*/api-docs").anonymous()
-// .antMatchers("/druid/**").anonymous()
+ .antMatchers("/swagger-ui.html").anonymous()
+ .antMatchers("/swagger-resources/**").anonymous()
+ .antMatchers("/webjars/**").anonymous()
+ .antMatchers("/*/api-docs").anonymous()
+ .antMatchers("/druid/**").anonymous()
// 闄や笂闈㈠鐨勬墍鏈夎姹傚叏閮ㄩ渶瑕侀壌鏉冭璇�
.anyRequest().authenticated()
.and()
--
Gitblit v1.9.3