ssm上传文件后台接受不到,页面报错404 5C

这是错误
Resolving exception from handler [null]: org.springframework.web.bind.UnsatisfiedServletRequestParameterException: Parameter conditions "save" not met for actual request parameters: upload={}
DEBUG [http-8080-1] - Resolving exception from handler [null]: org.springframework.web.bind.UnsatisfiedServletRequestParameterException: Parameter conditions "save" not met for actual request parameters: upload={}
DEBUG [http-8080-1] - Resolving exception from handler [null]: org.springframework.web.bind.UnsatisfiedServletRequestParameterException: Parameter conditions "save" not met for actual request parameters: upload={}
DEBUG [http-8080-1] - Null ModelAndView returned to DispatcherServlet with name 'springMvc': assuming HandlerAdapter completed request handling
DEBUG [http-8080-1] - Successfully completed request

1个回答

是因为file和其它入参不一样,你再入参对象前加上@RequestParam 就行了

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!