This commit is contained in:
karleowne 2019-07-22 17:46:58 +03:00
parent fe58d0f28e
commit c56e6f4e12
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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);
}