美化版swagger

Posted 一枚新人小菜鸡

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了美化版swagger相关的知识,希望对你有一定的参考价值。

pom
<dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-swagger-ui</artifactId>
            <version>2.7.0</version>
        </dependency>
        <dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-swagger2</artifactId>
            <version>2.7.0</version>
        </dependency>
        <dependency>
            <groupId>com.github.xiaoymin</groupId>
            <artifactId>knife4j-spring-boot-starter</artifactId>
            <version>2.0.4</version>
        </dependency>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.junit.vintage</groupId>
                    <artifactId>junit-vintage-engine</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
    </dependencies>



@ConditionalOnProperty(prefix = "msg-config", name = "swagger-open", havingValue = "true")  配置swagger开关
title标题  version 版本

http://localhost:1000/swagger-ui.html

http://localhost:1000/doc.html

以上是关于美化版swagger的主要内容,如果未能解决你的问题,请参考以下文章

美化版swagger

Mac版PowerPoint美化插件都有哪些

swagger-ui及swagger用法

注册页面美化版

Dubbo 版 Swagger 来啦!Dubbo-Api-Docs 发布

WebAPI纯净版中增加Swagger