feat: 将诊断端点添加到permitAll列表
This commit is contained in:
+3
-2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user