spring中关于FeignClient的错误 QueryParam.value() was empty on parameter 1
2024-08-26 21:53:35
现创建一个feignClient的接口,在其他服务调用改client时发现服务启动失败错误日志如下:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.product.client.ProductClient com.product.service.impl.ProductClient; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'productClient': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: QueryParam.value() was empty on parameter 1
查询client中,并未发现异常
最后发现其中一个接口中的参数@RequestParam中的参数没有加上value值
修改之后恢复正常。
最新文章
- 解析ListView联动的实现--仿饿了么点餐界面
- ES5 的 forEach, map, filter, some, every 方法
- C++11 并发指南六( <;atomic>; 类型详解二 std::atomic )
- 转载:JAVA中使用JSON进行数据传递
- Tomcat热部署:Maven项目一键部署到Tomcat服务器 - 支持多环境
- GMT与Etc/GMT地区信息的时区转换
- echarts雷达图点击事件 包含(2.x,3.85,4.02)测试
- python基础类型—字符串
- Nagios监控系统部署(源码)
- 008.Docker Flannel+Etcd分布式网络部署
- kaggle竞赛_mnist_10%
- Python网络爬虫笔记(一):网页抓取方式和LXML示例
- Vmware 注册服务 开机自启
- POJ 3067 - Japan - [归并排序/树状数组(BIT)求逆序对]
- Python 元组 count() 方法
- linux 下 python 安装 Django
- ExplorerControls的显示问题
- mysql sql left right inner join区别及效率比较
- Excel2016通过宏生成拼音码
- SpagoBI系列----------[01]SpagoBI简介及安装步骤
热门文章
- 用squid配置代理服务器(基于Ubuntu Server 12.04)
- 利用nginx做tcp负载均衡
- Linux命令-网络命令:mail
- AFN访问https设置
- [Java基础]List,Map集合总结
- Android Studio 新手常见错误:Gradle DSL method not found: &;#39;runProguard()&;#39;
- AngularJS体验式编程系列文章
- .net SQL分页
- CSU 1335: 高桥和低桥 (二分查找,树状数组)
- 第一个MICO CORBA demo实录