| | |
| | | |
| | | import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j; |
| | | |
| | | /** |
| | | * @author wMeng |
| | | * @ClassName SwaggerConfig |
| | | * @Description TODO |
| | | * @date 2022/10/31 18:55 |
| | | * @Version 1.0 |
| | | */ |
| | | @Configuration |
| | | @EnableKnife4j |
| | | public class Knife4jConfig { |
| | |
| | | @Value("${knife4j.enabled}") |
| | | private boolean enabled; |
| | | |
| | | /** |
| | | * 设置请求的统一前缀 |
| | | */ |
| | | @Value("${knife4j.pathMapping}") |
| | | private String pathMapping; |
| | | |
| | |
| | | |
| | | private ApiInfo apiInfo() { |
| | | return new ApiInfoBuilder() |
| | | //描述字段支持Markdown语法 |
| | | .description("我的接口测试文档") |
| | | .contact(new Contact("张腾飞", "http://127.0.0.1:9001/doc.html", "893732661@qq.com")) |
| | | .version("2.0.0") |