@Controller public class FileUploadController extends Object
Constructor and Description |
---|
FileUploadController() |
Modifier and Type | Method and Description |
---|---|
String |
upload(javax.servlet.http.HttpServletRequest req,
org.springframework.web.multipart.MultipartFile file,
org.springframework.ui.Model model) |
String |
uploadPage() |
@RequestMapping(value="/uploadPage") public String uploadPage()
@RequestMapping(value="/upload", method=POST) public String upload(javax.servlet.http.HttpServletRequest req, @RequestParam(value="file") org.springframework.web.multipart.MultipartFile file, org.springframework.ui.Model model)
Copyright © 2019. All rights reserved.