fix(security): 更新 Security 白名单支持 springdoc 路径
- /swagger-ui.html, /swagger-resources/**, /webjars/**, /*/api-docs + /swagger-ui/**, /swagger-ui.html, /v3/api-docs/**, /druid/**
This commit is contained in:
@@ -103,7 +103,7 @@ public class SecurityConfig {
|
|||||||
// 静态资源,可匿名访问
|
// 静态资源,可匿名访问
|
||||||
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**")
|
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**")
|
||||||
.permitAll()
|
.permitAll()
|
||||||
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**")
|
.antMatchers("/swagger-ui/**", "/swagger-ui.html", "/v3/api-docs/**", "/druid/**")
|
||||||
.permitAll()
|
.permitAll()
|
||||||
.antMatchers("/patientmanage/information/**")
|
.antMatchers("/patientmanage/information/**")
|
||||||
.permitAll()
|
.permitAll()
|
||||||
|
|||||||
Reference in New Issue
Block a user