|
|
@ -61,7 +61,7 @@ public class S3Service {
|
|
|
|
* @param key 对象路径
|
|
|
|
* @param key 对象路径
|
|
|
|
* @param file 文件对象
|
|
|
|
* @param file 文件对象
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Async("awsThreadPoolExecutor")
|
|
|
|
// @Async("awsThreadPoolExecutor")
|
|
|
|
public int singleUpload(String bucket, String key, MultipartFile file) throws IOException {
|
|
|
|
public int singleUpload(String bucket, String key, MultipartFile file) throws IOException {
|
|
|
|
Long startTime = System.currentTimeMillis() / 1000;
|
|
|
|
Long startTime = System.currentTimeMillis() / 1000;
|
|
|
|
PutObjectRequest putObjectRequest = PutObjectRequest.builder()
|
|
|
|
PutObjectRequest putObjectRequest = PutObjectRequest.builder()
|
|
|
|