Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
mall
Commits
c42d57cb
Commit
c42d57cb
authored
Aug 18, 2019
by
macro
Browse files
fix swagger icon bug
parent
c8317cbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
mall-admin/src/main/java/com/macro/mall/config/SecurityConfig.java
View file @
c42d57cb
...
...
@@ -62,7 +62,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
"/**/*.css"
,
"/**/*.js"
,
"/swagger-resources/**"
,
"/v2/api-docs/**"
"/v2/api-docs/**"
,
"/webjars/springfox-swagger-ui/**"
)
.
permitAll
()
.
antMatchers
(
"/admin/login"
,
"/admin/register"
)
// 对登录注册要允许匿名访问
...
...
mall-portal/src/main/java/com/macro/mall/portal/config/SecurityConfig.java
View file @
c42d57cb
...
...
@@ -38,7 +38,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
"/**/*.css"
,
"/**/*.js"
,
"/swagger-resources/**"
,
"/v2/api-docs/**"
"/v2/api-docs/**"
,
"/webjars/springfox-swagger-ui/**"
)
.
permitAll
()
.
antMatchers
(
HttpMethod
.
OPTIONS
)
//跨域请求会先进行一次options请求
...
...
Write
Preview
Supports
Markdown
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