Hab*_*chi 7 java spring maven swagger spring-boot
我只是想记录我的弹簧休息应用程序。按照如何使用 springfox,我在 pom.xml 中添加了一个依赖项:
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.7.0</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
jar 已正确下载,但我在任何地方都找不到 @EnableSwagger2 注释。
同样在这里。springfox.documentation.swagger2 jar 不存在于 springfox-core:2.7.0 中,当我之前使用它时,它们存在于 2.6.1 的先前版本中。我正在回退到 2.6.1。
检查他们的 2.7.0 发行说明以查看是否有您需要的错误修复可能不是一个坏主意: https: //github.com/springfox/springfox/releases/tag/2.7.0
更新:@EnableSwagger 实际上位于 springfox-swagger2-2.7.0.jar 中,而不是 springfox-core.jar 中。
归档时间: |
|
查看次数: |
12885 次 |
最近记录: |