java - 带有 Swagger 3 的弹簧上下文索引器
问题描述
我有一个 Maven 多模块 java 11 项目。项目配置了 Swagger 3
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-boot-starter</artifactId>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>3.0.0</version>
</dependency>
一旦我在所有 maven 模块中添加 spring-context-indexer 作为依赖项,swagger ui 就不再工作了
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-indexer</artifactId>
<version>5.2.2.RELEASE</version>
<optional>true</optional>
</dependency>
如果我从所有 maven 模块中删除 spring-context-indexer 依赖项,swagger ui 就可以工作。
我该如何解决这个问题?(如果这很重要,我们使用弹簧安全)
解决方案
有时,依赖项的最后一个版本可能与其他依赖项存在一些兼容性问题。 尝试旧版本。
推荐阅读
- api - context.Variable.GetValueOrDefault
("var1") 不在 xslt 策略中访问 - python - Python - 使用 API 更新 dict 中的值时出错
- mysql - MySQL更新或插入取决于NULL?
- android - 如何单击堆栈颤动中位于主屏幕后面的屏幕上的按钮
- laravel - laravel jetstrap 问题 - 页面不成形
- azure-cognitive-search - 实时电话通话音频的消费
- docker - 如何检查最旧 docker 版本的 docker-compose 最新限制?
- c++ - 在 g++ 编译器中显示错误的代码地址错误
- google-chrome - 在 Chrome 中防止 meta http-equiv="refresh"
- simulation - 是否有可能向 Ansys Mechanical 添加源术语?