集成测试严重失败,使用Swagger最新版本2.9.2和HATEOS进行Spring Boot 2.2.0升级

问题描述 投票:0回答:1

集成测试严重失败,使用Swagger最新版本2.9.2和HATEOS进行Spring Boot 2.2.0升级后>

java.lang.IllegalStateException: Failed to load ApplicationContext
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'linkDiscoverers' 
defined in class path resource [org/springframework/hateoas/config/HateoasConfiguration.class]: 
Unsatisfied dependency expressed through method 'linkDiscoverers' parameter 0; 
nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException:
No qualifying bean of type 'org.springframework.plugin.core.PluginRegistry<org.springframework.hateoas.client.LinkDiscoverer,
org.springframework.http.MediaType>' available: expected single matching bean but 
found 3: relProviderPluginRegistry,linkDiscovererRegistry,entityLinksPluginRegistry
Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: 
No qualifying bean of type 'org.springframework.plugin.core.PluginRegistry<org.springframework.hateoas.client.LinkDiscoverer, 
org.springframework.http.MediaType>' available: expected single matching bean but found 3: 
relProviderPluginRegistry,linkDiscovererRegistry,entityLinksPluginRegistry

Integration Test Sarted无法在Swagger最新版本2.9.2和HATEOS的Spring Boot 2.2.0升级后失败升级:java.lang.IllegalStateException:无法加载ApplicationContext,原因:org ....

spring-boot swagger-ui spring-hateoas
1个回答
0
投票
springfox的问题可能需要一些时间才能解决,但是最新的swagger v3具有与springfox类似的功能
© www.soinside.com 2019 - 2024. All rights reserved.