S3 file upload file without async

main
wangqing 10 months ago
parent 651d28fa55
commit b0f8f53bb8

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

Loading…
Cancel
Save