feat: 将诊断端点添加到permitAll列表
This commit is contained in:
1 parent
b316c47f05
commit
3051aa7e81
1 file changed
+3
-2
+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