Class ZerowebS3Config
java.lang.Object
io.github.xezzon.zeroweb.storage.s3.ZerowebS3Config
@Configuration
@ConfigurationProperties(prefix="zeroweb.file.s3")
@ConditionalOnProperty(name="S3_BUCKET")
public class ZerowebS3Config
extends Object
将 S3 作为存储后端的配置。
如果没有配置存储桶,则不会注册 Bean。
- Author:
- xezzon
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ZerowebS3Config
public ZerowebS3Config()
-
-
Method Details
-
getPartSize
public long getPartSize()单个分片最大大小
大于该大小的需要进行分片上传
- Returns:
- 单个分片的最大大小。单位 Byte。
-