@WebController @RequestMapping(value="/") public class FileUploadAndDownloadWebController extends JspSupportWebController
JspSupportWebController.Target| 构造器和说明 |
|---|
FileUploadAndDownloadWebController() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
downloadArchivedFile(String archivedFileId,
javax.servlet.http.HttpServletResponse response) |
EasyUIAjaxResponse<ArchivedFile> |
uploadArchivedFile(org.springframework.web.multipart.MultipartFile multipartFile) |
crashPage, display, error, error, exception, jump, notfound, pageNotFoundException, redirect, resourceNotFoundException, setWebControllerName, success, success, success, theme, webExceptiongetObjectMapper, setNoCacheHeader, writeFile, writeStringgetRequest, getResponse, getServletContext@RequestMapping(value="file/{id}",
method=GET)
public void downloadArchivedFile(@PathVariable(value="id")
String archivedFileId,
javax.servlet.http.HttpServletResponse response)
throws net.eulerframework.common.util.io.file.FileReadException,
IOException
net.eulerframework.common.util.io.file.FileReadExceptionIOException@ResponseBody
@RequestMapping(value="uploadFile",
method=POST)
public EasyUIAjaxResponse<ArchivedFile> uploadArchivedFile(@RequestParam(value="file")
org.springframework.web.multipart.MultipartFile multipartFile)
throws FileArchiveException
Copyright © 2017. All rights reserved.