请确保swagger资源接口正确.
@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();
}
}