介绍
https://www.csdn.net/tags/NtTacg4sNDM3MjgtYmxvZwO0O0OO0O0O.html
集成swagger
https://blog.csdn.net/weixin_52295537/article/details/123811506
替换jar包
ui jar包替换
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.9.2</version>
</dependency>
替换为
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-boot-starter</artifactId>
<version>2.0.4</version>
</dependency>
添加注解
在Swagger2Config类上面添加注解:@EnableKnife4j
访问
http://localhost:8080/doc.html