使用@FeignClient出现java.lang.IllegalStateException

  ,
评论 • 63 浏览

    报错代码

    @DeleteMapping("/api/transfer-tasks/meeting")
    ResponseEntity deleteTransferTasks(@RequestParam String meetingId);
    

    错误:

    FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: RequestParam.value() was empty on parameter 0
    

    解决方法(添加(“meetingId”))

    @DeleteMapping("/api/transfer-tasks/meeting")
    ResponseEntity deleteTransferTasks(@RequestParam("meetingId") String meetingId);
    

    over!

    版权声明:本文为博主原创文章,欢迎大家转载,但需保留文章链接。个人博客地址:http://www.wenboblogs.cn
    评论
    validate