chore: Swagger module config

This commit is contained in:
fit2-zhao
2025-02-07 13:31:47 +08:00
committed by Craftsman
parent 3257bbe8fb
commit 40b4dcb756

View File

@@ -71,4 +71,13 @@ public class OpenApiConfig {
.build();
}
@Bean
@ConditionalOnProperty(name = {"springdoc.swagger-ui.enabled", "springdoc.api-docs.enabled"}, havingValue = "true")
public GroupedOpenApi xpackApi() {
return GroupedOpenApi.builder()
.group("xpack")
.packagesToScan(prePackages + "xpack")
.build();
}
}