swagger配置完善

This commit is contained in:
linfeng 2023-12-28 11:23:12 +08:00
parent d40760adc5
commit 4d8e401296
3 changed files with 8 additions and 1 deletions

View File

@ -35,6 +35,9 @@ public class SwaggerConfig implements WebMvcConfigurer {
@Value("${linfeng.swagger.enable}")
private Boolean enable;
@Value("${linfeng.swagger.version}")
private String version;
@Bean
public Docket createRestApi(){
@ -54,7 +57,7 @@ public class SwaggerConfig implements WebMvcConfigurer {
.title("林风社交论坛开源版接口文档")
.description("林风社交论坛项目开源版接口文档 官网 https://net.linfeng.tech")
.contact(new Contact("linfeng","http:localhost:8080/doc.html","linfengtech001@163.com"))
.version("1.0")
.version(version)
.build();
}

View File

@ -34,9 +34,11 @@ spring:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
#swagger默认线上关闭 本地开启
linfeng:
swagger:
enable: true
version: 1.0
logging:
level:

View File

@ -32,9 +32,11 @@ spring:
config:
multi-statement-allow: true
#swagger默认线上关闭 本地开启
linfeng:
swagger:
enable: false
version: 1.0
logging:
level: