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

这是错误
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

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