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:
2026-06-04 14:06:49 +08:00
parent e84455da51
commit d51278d738

View File

@@ -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()