SSM项目报400错误注意之一

Controller 层

@RequestMapping(value="/addSD" )

public String addInfo(Standard standard,@RequestParam("attache") MultipartFile attache,


attache 是jsp的,对应 entity 的 standard.ackagePath  

这里不能直接写 ackagePath  否则封装数据会出问题,然后报 400 

只能写其他,然后赋值OK

jsp页面


    *附件:
    attache" type="file"/>
   

你可能感兴趣的:(SSM项目报400错误注意之一)