请确保swagger资源接口正确.

时间:2025-03-20 08:25:54
@Configuration @EnableSwagger2 @EnableSwaggerBootstrapUI @EnableAutoConfiguration //@Profile({"dev"}) public class SwaggerConfig { @Bean public Docket createRestApi() { return new Docket(DocumentationType.SWAGGER_2) .groupName("") .apiInfo(apiInfo()) .select() .apis(RequestHandlerSelectors.basePackage("")) .paths(PathSelectors.any()) .build(); } private ApiInfo apiInfo() { return new ApiInfoBuilder() .title("") .description("") .termsOfServiceUrl("") .version("1.0") .build(); } }