fastDFS开发详解

来源:互联网 发布:淘宝在台湾 编辑:程序博客网 时间:2024/06/01 21:40


一、引入jar包此处以marvern项目为例

        pom.xml文件中引入以下内容:

 

<!--FastDFS --><dependency><groupId>org.csource.fastdfs</groupId><artifactId>fastdfs_client</artifactId><version>1.24</version></dependency><dependency><groupId>fastdfs</groupId><artifactId>fastdht-client</artifactId><version>1.0</version><scope>compile</scope></dependency><dependency><groupId>commons-pool</groupId><artifactId>commons-pool</artifactId><version>1.6</version></dependency><dependency><groupId>org.apache.commons</groupId><artifactId>commons-lang3</artifactId><version>3.1</version></dependency><dependency><groupId>commons-io</groupId><artifactId>commons-io</artifactId><version>2.4</version></dependency><!-- https://mvnrepository.com/artifact/org.apache.commons/commons-io --><dependency><groupId>org.apache.commons</groupId><artifactId>commons-io</artifactId><version>1.3.2</version></dependency><!-- 图片压缩 --><dependency><groupId>net.coobird</groupId><artifactId>thumbnailator</artifactId><version>0.4.8</version></dependency><dependency><groupId>org.javassist</groupId><artifactId>javassist</artifactId><version>3.21.0-GA</version></dependency>