Springboot集成Swagger报错Parameter 0 of method linkDiscoverers in org.springframework.hateoas.config.Hat
第一次尝试使用springboot完成后端开发,在做demo的过程中集成swagger发生报错。
其中,swagger版本为2.2.2,springboot版本为2.3.4
觉得可能是版本不匹配,将swagger版本改成2.9.2,即可成功! pom.xml中的相关依赖如下:
<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.3.4.RELEASE</version><relativePath/>
</parent>
<!--添加swagger依赖-->
<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>
再次运行,成功效果:
Springboot集成Swagger报错Parameter 0 of method linkDiscoverers in org.springframework.hateoas.config.Hat相关推荐
- Parameter 0 of method linkDiscoverers in org.springframework.hateoas.config.HateoasConfiguration
今天用SpringBoot2.3.0整合swagger2.2.2版本的时候,启动SpringBoot报如下错: Error starting ApplicationContext. To displa ...
- Parameter 0 of method linkDiscoverers in org.springframework.hateoas.config.HateoasConfiguration req
项目场景: 整合springboot项目并对springboot项目进行版本升级 问题描述: 错误信息: Description:Parameter 0 of method linkDiscovere ...
- springboot启动报错Parameter 0 of method a in com.* required a bean of type 'java.lang.String' that could
springboot服务启动报错,报错信息如下 *************************** APPLICATION FAILED TO START ******************** ...
- 解决报错Parameter 0 of constructor in XXX required a bean...elasticsearch 继承ElasticsearchConfiguration方法
SpringBoot中构建带有含参构造函数的Bean,解决报错Parameter 0 of constructor in XXX required a bean ,elasticsearch继承Abs ...
- springboot集成logback,报错java.lang.IllegalStateException: Logback configuration error detected:
最近需要将一个springboot项目部署到一台新服务器上.而且新服务器是完全copy了旧服务器的环境与项目.但是在新服务器上启动该springboot项目,就一直报错 2019-03-18 18:5 ...
- SpringBoot 集成Nacos报错(一)
目录 配置信息 报错信息 解决方案 配置信息 <project><parent><groupId>org.springframework.boot</grou ...
- springboot集成redis报错找不到bean
在controller中注入redistemplate的时候报错找不到,我们需要写一个配置类: /*** Redis 配置类*/ @Configuration public class RedisCo ...
- Mybatis 报错`Parameter '0' not found. Available parameters are [arg1, arg0, param1, param2]`
1.异常信息: Parameter '0' not found. Available parameters are [arg1, arg0, param1, param2] 这是因为mybatis的M ...
- SpringBoot集成Redis报错链接超时以及无法识别的地址,存入redis中key乱码问题解决
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no furthe ...
最新文章
- 可怕!如果张东升是个程序员......
- web前端开发怎么学,web教程资源
- 关于类、方法、对象(实例):静态方法
- 服务器负载不高 响应慢_京东面试官问我什么是负载均衡,兄弟们我这样说对嘛?...
- 2020华南理工计算机考研分数线,华南理工大学2020考研复试分数线已公布
- 分段函数插值法c语言代码实验,实验名称插值法汇总.doc
- 2020上海学区房楼市,到底发生了什么?
- python4 什么时候_Python4要来了?快来看看Python之父怎么说
- 鸿蒙os下载到电脑上,鸿蒙系统pc版下载2.0
- POJ 2967 (水题,考察putchar()按位输入)
- SpringCloud工作笔记068---登录堡垒机_下载文件报错_Xshell向Linux上传下载文件_lrzsz_ZModem
- 主子表对应的字段_Power Pivot针对表筛选的函数及差异
- Python关键字和标识符
- 研究生开学需要准备的事宜(准研究生和保研必看)
- JS版日期格式化和解析工具类
- Spring学习14-源码下载地址
- Java pta题库
- DELL官方证实:NVIDIA史上最大显卡质量事故
- Toast的几种用法
- org.apache.flink.util.FlinkRuntimeException: Exceeded checkpoint tolerable failure threshold