项目地址 https://gitee.com/xiaoym/knife4j
application/pom.xml中添加knife4j依赖,其他不用修改。
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-boot-starter</artifactId>
<version>1.9.6</version>
</dependency>
访问localhost:8080/doc.html
接口tab页切换