提交 531d3f22 编写于 作者: zhouweidong's avatar zhouweidong

解决无法查看swagger的bug

上级 5ac68a1c
...@@ -104,7 +104,10 @@ public class webSecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -104,7 +104,10 @@ public class webSecurityConfig extends WebSecurityConfigurerAdapter {
"/**/fonts/**", "/**/fonts/**",
"/**/js/**", "/**/js/**",
"/**/img/**", "/**/img/**",
"/" "/",
"webjars/**",
"/swagger-resources/**",
"/v2/**"
).permitAll() ).permitAll()
//放行登录请求 //放行登录请求
.antMatchers( HttpMethod.POST,"/"+loginPath).permitAll() .antMatchers( HttpMethod.POST,"/"+loginPath).permitAll()
......
...@@ -94,7 +94,10 @@ public class DevBootSecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -94,7 +94,10 @@ public class DevBootSecurityConfig extends WebSecurityConfigurerAdapter {
"/**/fonts/**", "/**/fonts/**",
"/**/js/**", "/**/js/**",
"/**/img/**", "/**/img/**",
"/" "/",
"webjars/**",
"/swagger-resources/**",
"/v2/**"
).permitAll() ).permitAll()
.antMatchers("/uaa/permission/**").permitAll() .antMatchers("/uaa/permission/**").permitAll()
//放行登录请求 //放行登录请求
......
...@@ -110,7 +110,10 @@ public class apiSecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -110,7 +110,10 @@ public class apiSecurityConfig extends WebSecurityConfigurerAdapter {
"/**/fonts/**", "/**/fonts/**",
"/**/js/**", "/**/js/**",
"/**/img/**", "/**/img/**",
"/" "/",
"webjars/**",
"/swagger-resources/**",
"/v2/**"
).permitAll() ).permitAll()
//放行登录请求 //放行登录请求
.antMatchers( HttpMethod.POST,"/"+loginPath).permitAll() .antMatchers( HttpMethod.POST,"/"+loginPath).permitAll()
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册