mirror of
https://github.com/valitydev/file-storage.git
synced 2024-11-06 00:35:22 +00:00
bump aws
This commit is contained in:
parent
fe58d0f28e
commit
c56e6f4e12
2
pom.xml
2
pom.xml
@ -93,7 +93,7 @@
|
||||
<dependency>
|
||||
<groupId>com.amazonaws</groupId>
|
||||
<artifactId>aws-java-sdk-s3</artifactId>
|
||||
<version>1.11.160</version>
|
||||
<version>1.11.587</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
|
@ -46,7 +46,7 @@ public class AmazonS3StorageService implements StorageService {
|
||||
@PostConstruct
|
||||
public void init() {
|
||||
this.bucketName = storageProperties.getBucketName();
|
||||
if (!s3Client.doesBucketExist(bucketName)) {
|
||||
if (!s3Client.doesBucketExistV2(bucketName)) {
|
||||
log.info("Create bucket in file storage, bucketId='{}'", bucketName);
|
||||
s3Client.createBucket(bucketName);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user