1:导入依赖:
2:编写swagger配置—这里只做最简单的swagger配置
enableSagger2表示开启swagger
3:如果使用的是springboot版本为2.6x的,在application.yml配置以下配置
4:访问地址
http://localhost:8080/swagger-ui.html

1:导入依赖:
2:编写swagger配置—这里只做最简单的swagger配置
enableSagger2表示开启swagger
3:如果使用的是springboot版本为2.6x的,在application.yml配置以下配置
4:访问地址
http://localhost:8080/swagger-ui.html