【后端】nested exception is java.lang.IllegalStateException RequestParam.value() was empty on parameter

吃可爱长大的小学妹 提交于 2020-10-24 09:55:49

问题

A服务调B服务 报:


Error creating bean with name 'com.xzlcorp.contact.api.rest.IssueRESTAPI': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException RequestParam.value() was empty on parameter 0

// 主要看这个
nested exception is java.lang.IllegalStateException RequestParam.value() was empty on parameter 0

Spring Cloud 中的服务启动时出现的异常:

原因

是B服务中的某个方法传的参数,如
@RequestParam(“userId”) String userId 中的扩号 加里面的参数名忘记写了。 低级 以此记录

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!