日期:2014-05-17 浏览次数:20972 次
<form id="" name="" action="/instance/att/attup" method="POST" enctype="multipart/form-data">
@Controller
@RequestMapping("/instance/att")
public class InsAttValController extends AbstractController {
...................
...................
@RequestMapping(value = "/attup", method = RequestMethod.POST)
public ModelAndView updd(@RequestParam("attach") final MultipartFile multipartFile,HttpServletRequest request, HttpServletResponse response)
throws Exception {
System.out.println("11111111111");
return new ModelAndView(LIST_ACTION);
}
<bean id="multipartResolver"
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<property name="maxUploadSize" value="100000000000" />
<!--Max size in bytes.10M-->
</bean>