spring boot 整合swagger2(knife4j)
1、当然是要引入jar包了 https://doc.xiaominfo.com/guide/settings.html 官网链接 <!-- swagger2接口文档配置 这里使用2.5.0版本,这个版本没问题比较稳定,但是knife4j官网引入的版本有报错--> < dependency > < groupId > io.springfox </ groupId > < artifactId > springfox-swagger2 </ artifactId > < version > 2.5.0 </ version > </ dependency > < dependency > < groupId > com.github.xiaoymin </ groupId > < artifactId > swagger-bootstrap-ui </ artifactId > < version > 1.9.6 </ version > </ dependency > 2、 Swagger 配置文件 package com.sun.woofileyong.config; import org.springframework.context.annotation. Bean ; import org.springframework.context.annotation.