【发布时间】:2020-10-13 19:34:54
【问题描述】:
我迁移到最新的springfox-swagger2 版本2.10.0,但看起来@EnableSwagger2 已被弃用。
为了将 Swagger 启用到 Spring Boot 项目中,我应该使用什么注释? @EnableSwagger2WebMvc?
【问题讨论】:
-
不要使用未完全发布的
2.10.0版本 github.com/springfox/springfox/issues/3336 ,github.com/springfox/springfox/issues/3335 -
@EnableSwagger2WebMvc现在也已弃用!
标签: spring swagger swagger-2.0 springfox