fix:swagger配置

上级 58ca08bc
...@@ -31,7 +31,7 @@ public class Swagger2Config { ...@@ -31,7 +31,7 @@ public class Swagger2Config {
// 通过environment.acceptsProfiles()判断是否指定的环境中,是,则为true // 通过environment.acceptsProfiles()判断是否指定的环境中,是,则为true
boolean flag = environment.acceptsProfiles(profiles); boolean flag = environment.acceptsProfiles(profiles);
return new Docket(DocumentationType.SWAGGER_2) return new Docket(DocumentationType.SWAGGER_2)
.groupName("SpringBoot学习") .groupName("SpringBootStudy")
.pathMapping("/") .pathMapping("/")
.enable(flag) .enable(flag)
.apiInfo(apiInfo()) .apiInfo(apiInfo())
...@@ -50,5 +50,4 @@ public class Swagger2Config { ...@@ -50,5 +50,4 @@ public class Swagger2Config {
.version("Apache 2.0") .version("Apache 2.0")
.build(); .build();
} }
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册