/**
* 生成随机图片文件名,"年月日时分秒"格式
*/
String randomFileName() {
Date date = new Date(System.currentTimeMillis());
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
String fileName = simpleDateFormat.format(date);
return fileName;
}
java随机生成文件名方法