Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-wx-store-sharer
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
wx
yanxuan-wx-store-sharer
Commits
6a4fe88e
Commit
6a4fe88e
authored
Mar 12, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
放开权限,联调
parent
a5ff3e61
Pipeline
#71471
passed with stages
in 1 minute 10 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
WebConfig.java
...netease/yanxuan/wx/store/sharer/biz/config/WebConfig.java
+5
-14
No files found.
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/config/WebConfig.java
View file @
6a4fe88e
...
...
@@ -19,28 +19,19 @@ import java.util.Collections;
public
class
WebConfig
implements
WebMvcConfigurer
{
private
final
AuthInterceptor
authInterceptor
;
private
static
final
String
[]
EXCLUDE_URLS
=
{
"/open/**"
,
"/test/**"
,
"/i/health"
,
"/user/login"
,
"/product/page/list"
};
// private static final String[] EXCLUDE_URLS = {"/open/**",
// "/test/**", "/i/health", "/user/login",
// "/product/page/list"};
private
static
final
String
[]
EXCLUDE_URLS
=
{
"/**"
};
@Override
public
void
addInterceptors
(
InterceptorRegistry
registry
)
{
registry
.
addInterceptor
(
authInterceptor
)
.
addPathPatterns
(
getIncludePathPatterns
())
.
excludePathPatterns
(
getExcludePathPatterns
());
}
/**
* 需要用户和服务认证判断的路径
*/
private
ArrayList
<
String
>
getIncludePathPatterns
()
{
ArrayList
<
String
>
list
=
new
ArrayList
<>();
String
[]
urls
=
{
"/**"
};
Collections
.
addAll
(
list
,
urls
);
return
list
;
}
/**
* 白名单
*/
private
ArrayList
<
String
>
getExcludePathPatterns
()
{
...
...
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