参数信息不完整,前端传递参数为:app视频.mp4,在后端得到的参数值是:app视频,没有扩展名
代码:
@At("/f/?/?")
@Ok("raw")
public File f(String storeFileName, String realFileName,HttpServletResponse response) {
response.addHeader("Content-Type", "video/mp4");
response.addHeader("Content-Disposition", "inline");
File f = new File(attachmentSimplePath + "/" + storeFileName + "/" + realFileName);
return f;
}