项目地址 https://gitee.com/xiaoym/knife4j

    application/pom.xml中添加knife4j依赖,其他不用修改。

    1. <dependency>
    2. <groupId>com.github.xiaoymin</groupId>
    3. <artifactId>knife4j-spring-boot-starter</artifactId>
    4. <version>1.9.6</version>
    5. </dependency>

    访问localhost:8080/doc.html
    image.png
    接口tab页切换
    image.png