阿里云OSS对接

1、配置阿里云OSS

2、Ueditor中文件,想要上传至OSS

  1. #(1)Ueditor 开启OSS上传
  2. dodo.io.uploader.ueditor.uploaderType=oss
  3. #(2)Ueditor oss模式时的上传bucket,bucket来源【阿里云OSS集成配置】
  4. dodo.io.uploader.ueditor.oss.bucket=my-bucket

3、POJO类中配置文件字段,想要上传至OSS

  1. // 配置 ossBucket
  2. @DodoField(name = "美照", sortSeq = 5, isFile = true, fileStyle = FileStyle.OnlyPath, ossBucket = "my-bucket")
  3. private String photo;