From b0f8f53bb87c948b185df52bf613ba4bc08c91fd Mon Sep 17 00:00:00 2001 From: wangqing <408564126@qq.com> Date: Sat, 20 Jan 2024 17:33:04 +0800 Subject: [PATCH] S3 file upload file without async --- luoo_user/src/main/java/com/luoo/user/service/S3Service.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luoo_user/src/main/java/com/luoo/user/service/S3Service.java b/luoo_user/src/main/java/com/luoo/user/service/S3Service.java index e6fbd6c..6dc0651 100644 --- a/luoo_user/src/main/java/com/luoo/user/service/S3Service.java +++ b/luoo_user/src/main/java/com/luoo/user/service/S3Service.java @@ -61,7 +61,7 @@ public class S3Service { * @param key 对象路径 * @param file 文件对象 */ - @Async("awsThreadPoolExecutor") +// @Async("awsThreadPoolExecutor") public int singleUpload(String bucket, String key, MultipartFile file) throws IOException { Long startTime = System.currentTimeMillis() / 1000; PutObjectRequest putObjectRequest = PutObjectRequest.builder()