Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
polysoft-nafmii
/
polysoft-parent
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6c1ebe95
authored
Apr 25, 2021
by
zhoujinghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
过滤器接口加入
1 parent
f449c247
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
nafmii-gateway/src/main/java/org/nafmii/config/AccessFilter.java
nafmii-gateway/src/main/java/org/nafmii/config/AccessFilter.java
View file @
6c1ebe9
...
@@ -38,7 +38,7 @@ public class AccessFilter implements GlobalFilter, Ordered {
...
@@ -38,7 +38,7 @@ public class AccessFilter implements GlobalFilter, Ordered {
String
url
=
exchange
.
getRequest
().
getURI
().
getPath
();
String
url
=
exchange
.
getRequest
().
getURI
().
getPath
();
//相关不需要的接口地址
//相关不需要的接口地址
String
skip
=
"app/nafmii/test/"
;
String
skip
=
"app/nafmii/test/
search
"
;
//跳过不需要验证的url
//跳过不需要验证的url
if
(
antPathMatcher
.
match
(
skip
,
url
)){
if
(
antPathMatcher
.
match
(
skip
,
url
)){
return
chain
.
filter
(
exchange
);
return
chain
.
filter
(
exchange
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment