hsweb-framework icon indicating copy to clipboard operation
hsweb-framework copied to clipboard

文件上传增加S3协议的OSS支持

Open liujiang157 opened this issue 5 months ago • 2 comments

切换本地和oss通过环境变了file.storage=local/s3控制 s3协议的相关配置均在S3StorageProperties类中

liujiang157 avatar Jun 16 '25 13:06 liujiang157

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jun 16 '25 13:06 CLAassistant

重新调整了代码,走本地还是 S3 通过 "hsweb.file.storage"来控制,S3相关配置也遵循之前配置属性的命名基础上添加。控制 如果是S3则: System.setProperty("hsweb.file.storage", "s3"); 如果本地则设置如下或者不设置: System.setProperty("hsweb.file.storage", "local");

S3的相关配置: hsweb.file.upload.s3.endpoint hsweb.file.upload.s3.region hsweb.file.upload.s3.accessKey hsweb.file.upload.s3.secretKey hsweb.file.upload.s3.bucket

单元测试成功之后我删除了accessKey和secretKey,其余问题也改掉了

liujiang157 avatar Jun 17 '25 11:06 liujiang157