swagger修改完善

This commit is contained in:
linfeng 2024-03-05 10:26:05 +08:00
parent c152686998
commit 48fb062fee
2 changed files with 12 additions and 1 deletions

View File

@ -56,7 +56,7 @@ public class SwaggerConfig implements WebMvcConfigurer {
return new ApiInfoBuilder()
.title("林风社交论坛开源版接口文档")
.description("林风社交论坛项目开源版接口文档 官网https://net.linfeng.tech")
.contact(new Contact("linfeng","http:localhost:8080/doc.html","linfengtech001@163.com"))
.contact(new Contact("linfeng","http://localhost:8080/doc.html","linfengtech001@163.com"))
.version(version)
.build();

View File

@ -32,3 +32,14 @@ spring:
multi-statement-allow: true
#swagger默认线上关闭 本地开启
linfeng:
swagger:
enable: true
version: 1.0
logging:
level:
io.linfeng: Info
org.springframework.web: Info
io.swagger.*: ERROR