publish 0.0.9
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<parent>
|
||||
<groupId>com.tiesheng</groupId>
|
||||
<artifactId>tiesheng-parent</artifactId>
|
||||
<version>0.0.8</version>
|
||||
<version>0.0.9</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>tiesheng-util</artifactId>
|
||||
|
||||
@@ -37,6 +37,7 @@ public class FileUploadPath {
|
||||
}
|
||||
pathBean.setHttpPath(tempPath);
|
||||
pathBean.setAbsolutePath(String.format("%s/static%s", System.getProperty("user.dir"), tempPath));
|
||||
FileUtil.mkParentDirs(pathBean.getAbsolutePath());
|
||||
|
||||
return pathBean;
|
||||
}
|
||||
@@ -52,6 +53,16 @@ public class FileUploadPath {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 随机生成一个文件路径
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public static FileUploadPath random(String fileExt) {
|
||||
return get(IdUtil.simpleUUID() + "." + fileExt);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取一个目录
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user