fastfdfs上传代码

         //上传到FDFS
            //获取后缀名
            String extension = StringUtils.substringAfterLast(file.getOriginalFilename(),".");
            StorePath storePath = fastFileStorageClient.uploadFile(file.getInputStream(), file.getSize(), extension, null);

            //返回路径
            return prop.getBaseUrl()+storePath.getFullPath();        
原文地址:https://www.cnblogs.com/hashset/p/11294177.html