优化文件配置,去掉 region 的配置,通过自动识别

This commit is contained in:
YunaiV
2022-03-19 18:02:20 +08:00
parent 34a7399a65
commit 813069abf4
21 changed files with 28 additions and 43 deletions

View File

@ -40,12 +40,6 @@ public class S3FileClientConfig implements FileClientConfig {
*/
@URL(message = "domain 必须是 URL 格式")
private String domain;
/**
* 区域
*/
// @NotNull(message = "region 不能为空")
@Deprecated
private String region;
/**
* 存储 Bucket
*/

View File

@ -21,7 +21,6 @@ public class S3FileClientTest {
config.setDomain(null);
// 默认 9000 endpoint
config.setEndpoint("http://127.0.0.1:9000");
config.setRegion("us-east-1");
// 执行上传
testExecuteUpload(config);