feat: 将诊断端点添加到permitAll列表

This commit is contained in:
张翔
2026-04-05 08:07:13 +08:00
parent b316c47f05
commit 3051aa7e81
@@ -58,8 +58,9 @@ public class SecurityConfig {
.pathMatchers("/api-docs/**").permitAll()
.pathMatchers("/v3/api-docs/**").permitAll()
.pathMatchers("/swagger-resources/**").permitAll()
.pathMatchers("/webjars/**").permitAll();
logger.info("SecurityConfig: Swagger路径已放行");
.pathMatchers("/webjars/**").permitAll()
.pathMatchers("/api/diagnostic/**").permitAll();
logger.info("SecurityConfig: Swagger路径和诊断端点已放行");
}
spec.anyExchange().authenticated();