@Controller(value="ManageFileAction")
@RequestMapping(value="${ms.manager.path}/file")
public class ManageFileAction
extends BaseFileAction
BaseFileAction.Bean, BaseFileAction.Config| 构造器和说明 |
|---|
ManageFileAction() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
checkUploadPath(BaseFileAction.Bean bean) |
void |
download(String filePath,
javax.servlet.http.HttpServletResponse response) |
net.mingsoft.base.entity.ResultData |
upload(BaseFileAction.Bean bean,
boolean uploadFloderPath,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
处理post请求上传文件
可以自定义项目路径下任意文件夹
|
net.mingsoft.base.entity.ResultData |
uploadTemplate(BaseFileAction.Bean bean,
boolean uploadFloderPath,
javax.servlet.http.HttpServletResponse res) |
upload, uploadTemplatecheckRandCode, checkRandCode, decryptByAES, encryptByAES, getManagerBySession, getRandCode, getResString, redirectBack, removeUrlParams, validated, validated@LogAnn(title="\u5904\u7406post\u8bf7\u6c42\u4e0a\u4f20\u6587\u4ef6", businessType=OTHER) @PostMapping(value="/upload") @ResponseBody public net.mingsoft.base.entity.ResultData upload(BaseFileAction.Bean bean, boolean uploadFloderPath, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws IOException
req - HttpServletRequest对象res - HttpServletResponse 对象javax.servlet.ServletException - 异常处理IOException - 异常处理@PostMapping(value="/uploadTemplate") @ResponseBody public net.mingsoft.base.entity.ResultData uploadTemplate(BaseFileAction.Bean bean, boolean uploadFloderPath, javax.servlet.http.HttpServletResponse res) throws IOException
IOExceptionprotected boolean checkUploadPath(BaseFileAction.Bean bean)
@PostMapping(value="/download") public void download(String filePath, javax.servlet.http.HttpServletResponse response)
Copyright © 2022. All rights reserved.