Parameter 0 of method linkDiscoverers in org.springframework.hateoas.config.HateoasConfiguration
今天用SpringBoot2.3.0整合swagger2.2.2版本的时候,启动SpringBoot报如下错:
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
12:32:32.689 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of method linkDiscoverers in org.springframework.hateoas.config.HateoasConfiguration required a single bean, but 15 were found:
- modelBuilderPluginRegistry: defined in null
- modelPropertyBuilderPluginRegistry: defined in null
- typeNameProviderPluginRegistry: defined in null
- documentationPluginRegistry: defined in null
- apiListingBuilderPluginRegistry: defined in null
- operationBuilderPluginRegistry: defined in null
- parameterBuilderPluginRegistry: defined in null
- expandedParameterBuilderPluginRegistry: defined in null
- resourceGroupingStrategyRegistry: defined in null
- operationModelsProviderPluginRegistry: defined in null
- defaultsProviderPluginRegistry: defined in null
- pathDecoratorRegistry: defined in null
- relProviderPluginRegistry: defined by method 'relProviderPluginRegistry' in class path resource [org/springframework/hateoas/config/HateoasConfiguration.class]
- linkDiscovererRegistry: defined in null
- entityLinksPluginRegistry: defined by method 'entityLinksPluginRegistry' in class path resource [org/springframework/hateoas/config/WebMvcEntityLinksConfiguration.class]Action:
Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed
Process finished with exit code 1
解决办法:swagger2版本改为swagger2.9.2
<dependency><groupId>io.springfox</groupId><artifactId>springfox-swagger2</artifactId><version>2.9.2</version>
</dependency>
<dependency><groupId>io.springfox</groupId><artifactId>springfox-swagger-ui</artifactId><version>2.9.2</version>
</dependency>
Parameter 0 of method linkDiscoverers in org.springframework.hateoas.config.HateoasConfiguration相关推荐
- Parameter 0 of method linkDiscoverers in org.springframework.hateoas.config.HateoasConfiguration req
项目场景: 整合springboot项目并对springboot项目进行版本升级 问题描述: 错误信息: Description:Parameter 0 of method linkDiscovere ...
- Springboot集成Swagger报错Parameter 0 of method linkDiscoverers in org.springframework.hateoas.config.Hat
第一次尝试使用springboot完成后端开发,在做demo的过程中集成swagger发生报错. 其中,swagger版本为2.2.2,springboot版本为2.3.4 觉得可能是版本不匹配,将s ...
- org.springframework.hateoas.config.HateoasConfiguration required a single bean, but 15 were found:
问题 今天下项目中加入swagger后,启动时遇到这个问题 Parameter 0 of method linkDiscoverers in org.springframework.hateoas.c ...
- SpringBootc出现Parameter 0 of method modifyRequestBodyGatewayFilterFactory in org.springframework.clo
去掉<dependency> <groupId>org.springframework.cloud</groupId> ...
- Parameter 0 of method errorPageCustomizer in ErrorMvcAutoConfiguration 异常解决
Parameter 0 of method errorPageCustomizer in ErrorMvcAutoConfiguration required a bean of type 'xxx. ...
- Parameter 0 of method redisTemplate in org
服务提供方在使用这个redis的时候,因为引入错误的依赖,所以导致出现下面的报错.以及消费方也报了一堆错误 Error starting ApplicationContext. To display ...
- 关于Description: Parameter 0 of method customRouteLocator in com.powernode.config.RouteConfig require
错误 Description: Parameter 0 of method customRouteLocator in com.powernode.config.RouteConfig require ...
- 错误:Parameter 0 of method sqlSessionFactory in MyBatisConfig required a bean of type ‘javax.sql.DataS
SpringBoot启动错误: *************************** APPLICATION FAILED TO START ***************************D ...
- springboot启动报错Parameter 0 of method a in com.* required a bean of type 'java.lang.String' that could
springboot服务启动报错,报错信息如下 *************************** APPLICATION FAILED TO START ******************** ...
最新文章
- Android基础——数据持久化存储
- IOS Table中Cell的重用reuse机制分析
- Linux: 近100个常用命令大全
- mysql 自定义函数 事务_MySQL存储过程、触发器、自定义函数、事务
- java实现千米与经纬度度数的转换(画圆左右有精度缺失)
- ubuntu软件安装、卸载
- 微信小游戏凭什么拿走开发者 70% 的日流水?
- 学术必备 | 论文写作中注意这些细节,能显著提升成稿质量
- 《Redis视频教程》(p19)
- 习题4-11 兔子繁衍问题
- Windows 10连接打印机提示网路“指定的网络名已不再可用”
- 爱的台阶之危险流浪者
- WebGoat攻略 for Mac(1)
- 云服务器搭建nacos服务
- 区块链+金融潜力有多大?透视这30家金融机构的布局!
- ASO免费优化技巧:小米应用首发,小米aso优化怎么做
- 高速公路数字孪生3D场景制作全流程记录【Blender + UE4】
- 微信开发实战(2)—微信公众平台接口调试工具
- oracle 完全检查点条件,ORACLE Checkpoint(检查点)
- 芯片巨头恩智浦的前世今生