fix swagger icon bug
This commit is contained in:
parent
c8317cbc26
commit
c42d57cbe1
@ -62,7 +62,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|||||||
"/**/*.css",
|
"/**/*.css",
|
||||||
"/**/*.js",
|
"/**/*.js",
|
||||||
"/swagger-resources/**",
|
"/swagger-resources/**",
|
||||||
"/v2/api-docs/**"
|
"/v2/api-docs/**",
|
||||||
|
"/webjars/springfox-swagger-ui/**"
|
||||||
)
|
)
|
||||||
.permitAll()
|
.permitAll()
|
||||||
.antMatchers("/admin/login", "/admin/register")// 对登录注册要允许匿名访问
|
.antMatchers("/admin/login", "/admin/register")// 对登录注册要允许匿名访问
|
||||||
|
@ -38,7 +38,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|||||||
"/**/*.css",
|
"/**/*.css",
|
||||||
"/**/*.js",
|
"/**/*.js",
|
||||||
"/swagger-resources/**",
|
"/swagger-resources/**",
|
||||||
"/v2/api-docs/**"
|
"/v2/api-docs/**",
|
||||||
|
"/webjars/springfox-swagger-ui/**"
|
||||||
)
|
)
|
||||||
.permitAll()
|
.permitAll()
|
||||||
.antMatchers(HttpMethod.OPTIONS)//跨域请求会先进行一次options请求
|
.antMatchers(HttpMethod.OPTIONS)//跨域请求会先进行一次options请求
|
||||||
|
Loading…
x
Reference in New Issue
Block a user