Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lwby_ad_data
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
maliang
lwby_ad_data
Commits
a549b178
Commit
a549b178
authored
Apr 17, 2020
by
maliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
蓝湾博阅广告投放数据系统
parent
f8a7c4fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
SecurityConfig.java
.../java/com/boot/security/server/config/SecurityConfig.java
+1
-1
No files found.
src/main/java/com/boot/security/server/config/SecurityConfig.java
View file @
a549b178
...
@@ -52,7 +52,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
...
@@ -52,7 +52,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
// 基于token,所以不需要session
// 基于token,所以不需要session
http
.
sessionManagement
().
sessionCreationPolicy
(
SessionCreationPolicy
.
STATELESS
);
http
.
sessionManagement
().
sessionCreationPolicy
(
SessionCreationPolicy
.
STATELESS
);
//authorizeRequests获取配置请求授权的相关配置类,antMatchers设置哪些请求需要认证,authenticated设置需要请求的请求类型是post,.permitAll().anyRequest()表示出了前面设置的请求任意用户任何请求都可访问
http
.
authorizeRequests
()
http
.
authorizeRequests
()
.
antMatchers
(
"/"
,
"/*.html"
,
"/favicon.ico"
,
"/css/**"
,
"/js/**"
,
"/fonts/**"
,
"/layui/**"
,
"/img/**"
,
.
antMatchers
(
"/"
,
"/*.html"
,
"/favicon.ico"
,
"/css/**"
,
"/js/**"
,
"/fonts/**"
,
"/layui/**"
,
"/img/**"
,
"/v2/api-docs/**"
,
"/swagger-resources/**"
,
"/webjars/**"
,
"/pages/**"
,
"/druid/**"
,
"/v2/api-docs/**"
,
"/swagger-resources/**"
,
"/webjars/**"
,
"/pages/**"
,
"/druid/**"
,
...
...
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