加入swagger2
使用swagger2 测试
https://blog.csdn.net/qq_39576977/article/details/111556960
加入依赖
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-ui</artifactId>
<version>2.0.3</version>
</dependency>
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-boot-starter</artifactId>
<version>2.0.3</version>
</dependency>
访问
http://localhost:8081/doc.html?plus=1 注:8081自己项目的端口号