m0_47799925 2023-04-05 14:54 采纳率: 14.3%
浏览 13

使用httpclient 遇到的一个问题?

使用httpclient 遇到的一个问题

服务端请求的url

HttpPost post = new HttpPost("http://localhost:9091/receive/"+receiverIdParam);

客户端的接口

 @PostMapping("/receive/{id}")
    public Result<String> receive(HttpServletRequest request,
                                  @RequestParam("file") MultipartFile file,
                                  @PathVariable("receiverIdParam") String receiverIdParam){

目前出现这个问题
@Pathvariable Required URI template variable 'receiverIdParam' for method parameter type String is not present]

  • 写回答

2条回答 默认 最新

报告相同问题?

问题事件

  • 创建了问题 4月5日