ImageS3:使用Spring Boot将文件上传到AWS S3的简便方法

时间:2021-03-22 07:15:12
【文件属性】:
文件名称:ImageS3:使用Spring Boot将文件上传到AWS S3的简便方法
文件大小:58KB
文件格式:ZIP
更新时间:2021-03-22 07:15:12
Java 图像S3 使用Spring Boot将文件上传到AWS S3的简便方法 基于: 我做了一些改进,例如: 删除不赞成使用的对象 创建名为AmazonStatus的新输出类 修复删除过程 要与您合作,您需要在application.yml上添加存储桶信息: amazonProperties: endpointUrl: https://s3.REGION.amazonaws.com accessKey: YourKey secretKey: YourSecret bucketName: bucketName region: REGION 要保存图像,请使用: curl --location --request POST ' http://localhost:8080/storage/uploadFile ' \ --form ' file=@"/PathToYourFil
【文件预览】:
ImageS3-master
----pom.xml(2KB)
----mvnw(10KB)
----src()
--------test()
--------main()
----.gitignore(395B)
----.mvn()
--------wrapper()
----README.md(1KB)
----mvnw.cmd(6KB)

网友评论