$.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);