兼容+功能
This commit is contained in:
@@ -13,9 +13,6 @@ import springfox.documentation.spi.DocumentationType;
|
||||
import springfox.documentation.spring.web.plugins.Docket;
|
||||
import springfox.documentation.swagger2.annotations.EnableSwagger2;
|
||||
|
||||
/**
|
||||
* @author guhong
|
||||
*/
|
||||
@Configuration
|
||||
@EnableSwagger2
|
||||
public class SwaggerConfig {
|
||||
@@ -37,7 +34,7 @@ public class SwaggerConfig {
|
||||
// 设置是否开启swagger,生产环境关闭
|
||||
.enable(swaggerEnable).select()
|
||||
// 当前包路径
|
||||
.apis(RequestHandlerSelectors.basePackage("com.newyetai"))
|
||||
.apis(RequestHandlerSelectors.basePackage("com.senmesh"))
|
||||
.apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))
|
||||
.paths(PathSelectors.any()).build();
|
||||
}
|
||||
@@ -52,7 +49,7 @@ public class SwaggerConfig {
|
||||
// 页面标题
|
||||
.title("接口文档")
|
||||
// 创建人
|
||||
.contact(new Contact("雷佳平", "", ""))
|
||||
.contact(new Contact("ljp", "", ""))
|
||||
// 版本号
|
||||
.version("1.0")
|
||||
// 描述
|
||||
|
||||
Reference in New Issue
Block a user