8000 GitHub - yufire/oss_cos-Demo: 阿里云 腾讯云 对象存储 demo
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

yufire/oss_cos-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OSS-COS 的操作demo

注意事项

使用该demo之前:

  • 注册您的 腾讯云 或者 阿里云 账号
  • 开通 oss(阿里云) 或 cos(腾讯云) 对象存储服务
  • 获取 SecretId 和 SecretKey
  • 创建 bucket 权限为公共读
  • 把获取到的 参数填入 项目的 application.yml文件中

概述

使用阿里云oss 腾讯云 cos -商业化组件实现 上传 ,下载,删除,查看 的demo

操作流程图

阿里云OSS操作流程图

需要环境

  • 开发工具:Intellij IDEA 、MyEclipse 等...
  • Java SDK:jdk1.8
  • 所需框架:SpringBoot 2.2.6 RELEASE

项目所需依赖

<dependency>
    <groupId>com.aliyun.oss</groupId>
    <artifactId>aliyun-sdk-oss</artifactId>
    <version>2.8.2</version>
</dependency>
<dependency>
    <groupId>com.qcloud</groupId>
    <artifactId>cos_api</artifactId>
    <version>5.6.19</version>
</dependency>

相关链接

项目访问路径

阿里云注册链接

腾讯云注册链接

腾讯云 cos 对象存储 新用户免费 40G空间

地址

1587284269210

阿里云 对象存储 很便宜

开通地址

1587284421176

demo主页效果

主页效果

About

阿里云 腾讯云 对象存储 demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0