Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-cloud-core
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xingmin
yd-cloud-core
Commits
11858115
Commit
11858115
authored
Apr 15, 2026
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
c1e00c99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
yd-gateway/src/main/java/com/yd/gateway/config/GatewayJwtAuthFilterConfig.java
+3
-2
No files found.
yd-gateway/src/main/java/com/yd/gateway/config/GatewayJwtAuthFilterConfig.java
View file @
11858115
...
...
@@ -50,6 +50,7 @@ public class GatewayJwtAuthFilterConfig {
return
(
exchange
,
chain
)
->
{
// 1. 获取请求路径,跳过白名单(如登录、Swagger等)
String
path
=
exchange
.
getRequest
().
getPath
().
toString
();
log
.
info
(
"注册全局过滤器,优先级高于路由过滤器=>path,{}"
,
path
);
if
(
isWhitelist
(
path
))
{
// 白名单路径直接放行
return
chain
.
filter
(
exchange
);
...
...
@@ -117,8 +118,8 @@ public class GatewayJwtAuthFilterConfig {
"/**/ossFile/list"
,
// 如果路径固定,也可以直接加完整路径
// "/api/oss/api/ossFile/list"
"/relProjectRole/page"
,
"/relProjectRole/menu/list"
"/
user/api/
relProjectRole/page"
,
"/
user/api/
relProjectRole/menu/list"
};
for
(
String
pattern
:
whitelistPatterns
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment