更改minio上传拼接时间时格式错误的问题
This commit is contained in:
@@ -33,7 +33,7 @@ public class MinioUtil {
|
|||||||
} else {
|
} else {
|
||||||
minioClient = new MinioClient(minio_url);
|
minioClient = new MinioClient(minio_url);
|
||||||
}
|
}
|
||||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMDDHHMMss");
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
|
||||||
String ymd = sdf.format(new Date());
|
String ymd = sdf.format(new Date());
|
||||||
String objectName = ymd + "-" + fileName;
|
String objectName = ymd + "-" + fileName;
|
||||||
minioClient.putObject(minio_bucketName, objectName, inputStream, inputStream.available(), contentType);
|
minioClient.putObject(minio_bucketName, objectName, inputStream, inputStream.available(), contentType);
|
||||||
|
|||||||
Reference in New Issue
Block a user