|  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation(value = "上传服务器本地", notes = "上传服务器本地", httpMethod = "POST", position = 6) | 
 |  |  |     @ApiImplicitParams({ | 
 |  |  |             @ApiImplicitParam(name = "folder", value = "文件夹", required = true, paramType = "query", dataType = "String", dataTypeClass = String.class), | 
 |  |  |     }) | 
 |  |  |     @PostMapping(value = "/uploadLocal", headers = "content-type=multipart/form-data") | 
 |  |  |     public void uploadLocal(String folder, HttpServletRequest request, HttpServletResponse response) throws Exception { | 
 |  |  |         MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; | 
 |  |  |  | 
 |  |  |         // CommonsMultipartFile files = (CommonsMultipartFile) multipartRequest.getFile("filedata"); | 
 |  |  |         uploadFileLocal(multipartRequest,  folder+ "/", response, | 
 |  |  |                 systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.ROOT_PATH).getCode() , | 
 |  |  |                 systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.FILE_DIR).getCode()); | 
 |  |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public void uploadFileLocal(HttpServletRequest request, String folder, HttpServletResponse response, String rootPath,String dir) throws Exception { | 
 |  |  |         response.setCharacterEncoding("UTF-8"); |