本文主要是介绍String不能作为requestBody,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
String不能作为requestBody
修改为这样就可以;额
@RequestMapping(value = "/uploadexcel", method = RequestMethod.POST) public CorpusResponse uploadExcel(@RequestParam("file") MultipartFile file, @RequestParam String eventCode) throws Exception {
这篇关于String不能作为requestBody的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!