推特 阿里云技术文档正文

安装_Java SDK_SDK手册_智能云相册

admin 阿里云技术文档 2020-02-11 203 0
阿里云服务器优惠

安装

环境要求

  • JDK 1.6及以上
  • 或Andriod 2.3及以上

安装

在maven项目的pom.xml中加入以下依赖项即可

  1. <dependency>
  2. <groupId>com.aliyun</groupId>
  3. <artifactId>aliyun-java-sdk-cloudphoto</artifactId>
  4. <version>LATEST</version>
  5. </dependency>
  6. <dependency>
  7. <groupId>com.aliyun</groupId>
  8. <artifactId>aliyun-java-sdk-core</artifactId>
  9. <version>3.2.6</version>
  10. </dependency>

依赖

智能云相册使用OSS来存储用户上传的影像数据,因此还需要引入OSS的SDK来上传文件。同样,在maven项目的pom.xml中加入以下依赖项即可:

  1. <dependency>
  2. <groupId>com.aliyun.oss</groupId>
  3. <artifactId>aliyun-sdk-oss</artifactId>
  4. <version>2.7.0</version>
  5. </dependency>
  6. <dependency>
  7. <groupId>org.apache.httpcomponents</groupId>
  8. <artifactId>httpclient</artifactId>
  9. <version>4.4</version>
  10. </dependency>

注:OSS的SDK依赖httpclient4.4

版权声明

本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。

评论

-----