Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-evbusiness-server
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 83c9b23d
authored
Nov 17, 2023
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]还原
1 parent
649c8390
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
platform-evbusiness/src/main/java/cn/com/glsx/evbusiness/config/WebConfig.java
platform-evbusiness/src/main/java/cn/com/glsx/evbusiness/config/WebConfig.java
View file @
83c9b23
...
@@ -57,7 +57,7 @@ public class WebConfig implements WebMvcConfigurer {
...
@@ -57,7 +57,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
@Override
public
void
addInterceptors
(
InterceptorRegistry
registry
)
{
public
void
addInterceptors
(
InterceptorRegistry
registry
)
{
/*
//1.加入的顺序就是拦截器执行的顺序,
//1.加入的顺序就是拦截器执行的顺序,
//2.按顺序执行所有拦截器的preHandle
//2.按顺序执行所有拦截器的preHandle
//3.所有的preHandle 执行完再执行全部postHandle 最后是postHandle
//3.所有的preHandle 执行完再执行全部postHandle 最后是postHandle
registry
.
addInterceptor
(
getAccessLimitIntercept
()).
addPathPatterns
(
"/**"
)
registry
.
addInterceptor
(
getAccessLimitIntercept
()).
addPathPatterns
(
"/**"
)
...
@@ -70,7 +70,7 @@ public class WebConfig implements WebMvcConfigurer {
...
@@ -70,7 +70,7 @@ public class WebConfig implements WebMvcConfigurer {
.
excludePathPatterns
(
"/api/chargeGun/**"
)
.
excludePathPatterns
(
"/api/chargeGun/**"
)
.
excludePathPatterns
(
uploadProperties
.
getFilepath
())
.
excludePathPatterns
(
uploadProperties
.
getFilepath
())
.
excludePathPatterns
(
"/swagger-resources/**"
,
"/swagger-ui/**"
,
"/v3/**"
,
"/doc.html"
);
.
excludePathPatterns
(
"/swagger-resources/**"
,
"/swagger-ui/**"
,
"/v3/**"
,
"/doc.html"
);
registry.addInterceptor(logInterceptor).addPathPatterns("/**");
*/
registry
.
addInterceptor
(
logInterceptor
).
addPathPatterns
(
"/**"
);
}
}
}
}
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