2020
10-28
10-28
SpringBoot实现上传文件到AWS S3的代码
简单记录一下在Springboot中上传文件到AWSS3存储服务的代码。在application.xml中添加aws相关配置:custom: aws: access-key:CHOBITACCESSKEY secret-key:CHOBIT/THISIS006SECRET007Key/dotORG bucket:zhyea endpoint:www.zhyea.com:80新建一个AwsS3Componment类来执行上传文件操作:@ComponentpublicclassAwsS...
继续阅读 >