安装
环境要求
- JDK 1.6及以上
- 或Andriod 2.3及以上
安装
在maven项目的pom.xml中加入以下依赖项即可
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-cloudphoto</artifactId>
<version>LATEST</version>
</dependency>
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-core</artifactId>
<version>3.2.6</version>
</dependency>
依赖
智能云相册使用OSS来存储用户上传的影像数据,因此还需要引入OSS的SDK来上传文件。同样,在maven项目的pom.xml中加入以下依赖项即可:
<dependency>
<groupId>com.aliyun.oss</groupId>
<artifactId>aliyun-sdk-oss</artifactId>
<version>2.7.0</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.4</version>
</dependency>
注:OSS的SDK依赖httpclient4.4
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。
评论