Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cnooc_zydeepen-cggl_expert-manage-miniapp
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
孙德龙
cnooc_zydeepen-cggl_expert-manage-miniapp
Commits
1c9c6be7
Commit
1c9c6be7
authored
Nov 15, 2025
by
weisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix conflict
parent
8245c32f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
28 deletions
+0
-28
src/main/java/com/cnooc/expert/config/TheWebMvcConfigurer.java
+0
-28
No files found.
src/main/java/com/cnooc/expert/config/TheWebMvcConfigurer.java
View file @
1c9c6be7
...
...
@@ -11,7 +11,6 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public
class
TheWebMvcConfigurer
implements
WebMvcConfigurer
{
<<<<<<<
HEAD
// @Autowired
// private LoginInterceptor loginInterceptor;
//
...
...
@@ -37,32 +36,5 @@ public class TheWebMvcConfigurer implements WebMvcConfigurer {
// public WebAuthInterceptor webAuthInterceptor() {
// return new WebAuthInterceptor();
// }
=======
@Autowired
private
LoginInterceptor
loginInterceptor
;
@Override
public
void
addInterceptors
(
InterceptorRegistry
registry
)
{
// 注册登录拦截器,并设置拦截路径和排除路径
registry
.
addInterceptor
(
loginInterceptor
)
.
addPathPatterns
(
"/**"
)
// 拦截所有路径
.
excludePathPatterns
(
// 排除一些路径
"/sys/**"
,
"/verify/**"
,
"/person/**"
,
"/text/**"
,
"/error/**"
,
"/error"
);
registry
.
addInterceptor
(
webAuthInterceptor
());
}
@Bean
public
WebAuthInterceptor
webAuthInterceptor
()
{
return
new
WebAuthInterceptor
();
}
>>>>>>>
3
bc7fe8847766d39bf419c764c9495af3590dfa2
}
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