Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-qc-change-system
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
胡园园
yanxuan-qc-change-system
Commits
e8076bd6
Commit
e8076bd6
authored
Dec 07, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 登录态校验
parent
8f2e61a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
WebMvcConfig.java
.../netease/mail/yanxuan/change/web/config/WebMvcConfig.java
+4
-0
No files found.
yanxuan-qc-change-system-web/src/main/java/com/netease/mail/yanxuan/change/web/config/WebMvcConfig.java
View file @
e8076bd6
...
@@ -15,6 +15,9 @@ public class WebMvcConfig implements WebMvcConfigurer {
...
@@ -15,6 +15,9 @@ public class WebMvcConfig implements WebMvcConfigurer {
@Autowired
@Autowired
private
UserInterceptor
userInterceptor
;
private
UserInterceptor
userInterceptor
;
@Autowired
private
AdminUserLoginInterceptor
adminUserLoginInterceptor
;
/**
/**
* 拦截器配置
* 拦截器配置
*
*
...
@@ -24,6 +27,7 @@ public class WebMvcConfig implements WebMvcConfigurer {
...
@@ -24,6 +27,7 @@ public class WebMvcConfig implements WebMvcConfigurer {
public
void
addInterceptors
(
InterceptorRegistry
registry
)
{
public
void
addInterceptors
(
InterceptorRegistry
registry
)
{
registry
.
addInterceptor
(
userInterceptor
).
addPathPatterns
(
"/**"
).
excludePathPatterns
(
"/i/health"
)
registry
.
addInterceptor
(
userInterceptor
).
addPathPatterns
(
"/**"
).
excludePathPatterns
(
"/i/health"
)
.
excludePathPatterns
(
"/change/flow/getOperator"
,
"/test/createToDo"
,
"/test/progressTodo"
,
"/test/submit"
);
.
excludePathPatterns
(
"/change/flow/getOperator"
,
"/test/createToDo"
,
"/test/progressTodo"
,
"/test/submit"
);
registry
.
addInterceptor
(
adminUserLoginInterceptor
).
addPathPatterns
(
"test/**"
);
}
}
}
}
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