$.ajax({
      url: '/excel/importExcel?instance='+"品种1",
      type: 'POST',
      data: formData,

上面前端通过?拼接参数.

后台接受如下:

 public Integer importExcel(@RequestParam(value = "uploadFile") MultipartFile uploadFile,
                @RequestParam(value="instance")String instance,Model model){
        System.out.println("instance"+instance);

 

相关文章:

  • 2022-12-23
  • 2021-07-24
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2021-07-06
  • 2021-12-27
  • 2022-12-23
猜你喜欢
  • 2021-06-08
  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案