Alibaba Cloud OSS

  1. 官网提供了一种更为简单的OSS使用方法(配置+注入)
    https://github.com/alibaba/spring-cloud-alibaba/blob/master/README-zh.md
  2. 步骤
    1. 引入 aliyun-oss-spring-boot-starter 依赖
    2. 配置 access-key,secret-key,endpoint 信息
    3. 注入OSSClient 进行操作
      在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_51681634/article/details/111559828