今天用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相关推荐

  1. Parameter 0 of method linkDiscoverers in org.springframework.hateoas.config.HateoasConfiguration req

    项目场景: 整合springboot项目并对springboot项目进行版本升级 问题描述: 错误信息: Description:Parameter 0 of method linkDiscovere ...

  2. 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 ...

  3. org.springframework.hateoas.config.HateoasConfiguration required a single bean, but 15 were found:

    问题 今天下项目中加入swagger后,启动时遇到这个问题 Parameter 0 of method linkDiscoverers in org.springframework.hateoas.c ...

  4. SpringBootc出现Parameter 0 of method modifyRequestBodyGatewayFilterFactory in org.springframework.clo

    去掉<dependency>             <groupId>org.springframework.cloud</groupId>           ...

  5. Parameter 0 of method errorPageCustomizer in ErrorMvcAutoConfiguration 异常解决

    Parameter 0 of method errorPageCustomizer in ErrorMvcAutoConfiguration required a bean of type 'xxx. ...

  6. Parameter 0 of method redisTemplate in org

    服务提供方在使用这个redis的时候,因为引入错误的依赖,所以导致出现下面的报错.以及消费方也报了一堆错误 Error starting ApplicationContext. To display ...

  7. 关于Description: Parameter 0 of method customRouteLocator in com.powernode.config.RouteConfig require

    错误 Description: Parameter 0 of method customRouteLocator in com.powernode.config.RouteConfig require ...

  8. 错误:Parameter 0 of method sqlSessionFactory in MyBatisConfig required a bean of type ‘javax.sql.DataS

    SpringBoot启动错误: *************************** APPLICATION FAILED TO START ***************************D ...

  9. springboot启动报错Parameter 0 of method a in com.* required a bean of type 'java.lang.String' that could

    springboot服务启动报错,报错信息如下 *************************** APPLICATION FAILED TO START ******************** ...

最新文章

  1. Android基础——数据持久化存储
  2. IOS Table中Cell的重用reuse机制分析
  3. Linux: 近100个常用命令大全
  4. mysql 自定义函数 事务_MySQL存储过程、触发器、自定义函数、事务
  5. java实现千米与经纬度度数的转换(画圆左右有精度缺失)
  6. ubuntu软件安装、卸载
  7. 微信小游戏凭什么拿走开发者 70% 的日流水?
  8. 学术必备 | 论文写作中注意这些细节,能显著提升成稿质量
  9. 《Redis视频教程》(p19)
  10. 习题4-11 兔子繁衍问题
  11. Windows 10连接打印机提示网路“指定的网络名已不再可用”
  12. 爱的台阶之危险流浪者
  13. WebGoat攻略 for Mac(1)
  14. 云服务器搭建nacos服务
  15. 区块链+金融潜力有多大?透视这30家金融机构的布局!
  16. ASO免费优化技巧:小米应用首发,小米aso优化怎么做
  17. 高速公路数字孪生3D场景制作全流程记录【Blender + UE4】
  18. 微信开发实战(2)—微信公众平台接口调试工具
  19. oracle 完全检查点条件,ORACLE Checkpoint(检查点)
  20. 芯片巨头恩智浦的前世今生

热门文章

  1. 电机控制编程的数学运算优化方案
  2. 你们要的Java学习路线图,来喽
  3. Intent传递数据的方法
  4. mac 下安装brew
  5. 相似度计算之Jaccard系数
  6. Python从入门到入土的90行代码
  7. 烂泥:Domino8.5服务器迁移方案
  8. excel的vlookup如果是空白就不显示0,而是显示空白
  9. 【云服务器 ECS 实战】专有网络 VPC、弹性网卡的概述与配置
  10. 苹果系统和windows系统怎么切换_Windows体验苹果系统,Macbook你也可以拥有!