|
|
|
@ -33,7 +33,7 @@ public class SwaggerConfig {
|
|
|
|
|
public Docket docketWuhan() {
|
|
|
|
|
return new Docket(DocumentationType.SWAGGER_2)
|
|
|
|
|
.apiInfo(getApiInfo())
|
|
|
|
|
.groupName("武汉")
|
|
|
|
|
.groupName("文档1")
|
|
|
|
|
.select().apis(RequestHandlerSelectors.basePackage("com.example"))
|
|
|
|
|
.build();
|
|
|
|
|
}
|
|
|
|
@ -42,7 +42,7 @@ public class SwaggerConfig {
|
|
|
|
|
@Bean
|
|
|
|
|
public ApiInfo getApiInfo() {
|
|
|
|
|
// Contact(String name, String url, String email)
|
|
|
|
|
Contact contact = new Contact("hxlc", "https://www.baotao.com", "898773575@qq.com");
|
|
|
|
|
return new ApiInfo("宜昌天镜", "页面描述了宜昌天镜各个接口的模型", "1.0", "url", contact, "Apache Foundation", "http://www.baidu.com", new ArrayList<>());
|
|
|
|
|
Contact contact = new Contact("hxlc", "https://www.baotao.com", "1111@163.com");
|
|
|
|
|
return new ApiInfo("zx-java", "接口模型", "1.0", "url", contact, "Apache Foundation", null, new ArrayList<>());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|