|
|
@ -35,7 +35,9 @@ import java.util.List; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @Author scott |
|
|
|
* swagger 配置类 |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @author |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Configuration |
|
|
|
@Configuration |
|
|
|
@EnableSwagger2 //开启 Swagger2
|
|
|
|
@EnableSwagger2 //开启 Swagger2
|
|
|
@ -165,14 +167,14 @@ public class Swagger2Config implements WebMvcConfigurer { |
|
|
|
private ApiInfo apiInfo() { |
|
|
|
private ApiInfo apiInfo() { |
|
|
|
return new ApiInfoBuilder() |
|
|
|
return new ApiInfoBuilder() |
|
|
|
// //大标题
|
|
|
|
// //大标题
|
|
|
|
.title("JeecgBoot 后台服务API接口文档") |
|
|
|
.title("DB Bastion Server 后台服务API接口文档") |
|
|
|
// 版本号
|
|
|
|
// 版本号
|
|
|
|
.version("1.0") |
|
|
|
.version("1.0") |
|
|
|
// .termsOfServiceUrl("NO terms of service")
|
|
|
|
// .termsOfServiceUrl("NO terms of service")
|
|
|
|
// 描述
|
|
|
|
// 描述
|
|
|
|
.description("后台API接口") |
|
|
|
.description("后台API接口") |
|
|
|
// 作者
|
|
|
|
// 作者
|
|
|
|
.contact(new Contact("北京国炬信息技术有限公司", "www.jeccg.com", "jeecgos@163.com")) |
|
|
|
.contact(new Contact("niushuai233", "niushuai.cc", "shuai.niu@foxmail.com")) |
|
|
|
.license("The Apache License, Version 2.0") |
|
|
|
.license("The Apache License, Version 2.0") |
|
|
|
.licenseUrl("http://www.apache.org/licenses/LICENSE-2.0.html") |
|
|
|
.licenseUrl("http://www.apache.org/licenses/LICENSE-2.0.html") |
|
|
|
.build(); |
|
|
|
.build(); |
|
|
|