引入swagger
【我试过其他的springboot版本都有与swagger都有冲突,之后找度娘问了一下,他给了我答案是用springBoot 2.5.6版本不与swagger 2.7.0版本冲突】
写SwaggerConfig配置文件
测试
登录网址http://ip:port/swagger-ui.html
我的这个地址是 http://localhost:7889/swagger-ui.html

引入swagger
【我试过其他的springboot版本都有与swagger都有冲突,之后找度娘问了一下,他给了我答案是用springBoot 2.5.6版本不与swagger 2.7.0版本冲突】
写SwaggerConfig配置文件
测试
登录网址http://ip:port/swagger-ui.html
我的这个地址是 http://localhost:7889/swagger-ui.html