启动类已配置config文件和@EnableSwagger2
config也已经配置
但是打开是
打开http://localhost:8089/v2/api-docs
接口返回正常
如果去掉
@ComponentScan({"com.example"})
能打开页面但是看不到接口
启动类已配置config文件和@EnableSwagger2
config也已经配置
但是打开是
打开http://localhost:8089/v2/api-docs
接口返回正常
如果去掉
@ComponentScan({"com.example"})
能打开页面但是看不到接口
springboot整合swagger建议参考:
你真的了解 Swagger 文档吗?
https://www.52interview.com/book/25/261