| | |
| | | @ResponseBody |
| | | public void upload(HttpServletRequest request, HttpServletResponse response, String folder) throws Exception { |
| | | // folder = systemDictDataBiz.queryByCode(Constants.FTP,folder).getCode(); |
| | | Date d1 = new Date(); |
| | | log.error("总得上传文件成功=============开始========="+DateUtil.getPlusTime2(d1)); |
| | | folder =StringUtils.defaultString(folder).replace("/", ""); |
| | | String prefixPath = systemDictDataBiz.queryByCode(Constants.FTP,Constants.FTP_RESOURCE_PATH).getCode(); |
| | | InputStream is = null; |
| | |
| | | context.put("data",fileJSON); |
| | | context.put("message","请求成功"); |
| | | writerJson(response, context); |
| | | Date d2= new Date(); |
| | | log.error("总的上传文件成功=============结束========="+DateUtil.getPlusTime2(d2) +"耗时秒:"+( (d2.getTime()-d1.getTime()) /1000)); |
| | | return; |
| | | } |
| | | } |