add(req-2080):创建linux服务器临时目录
This commit is contained in:
parent
1bfc319140
commit
8871d1ca75
@ -645,7 +645,7 @@ public class FileServiceImpl implements FileService {
|
||||
String osName = System.getProperty("os.name");
|
||||
String rootDir = null;
|
||||
if (Objects.nonNull(osName) && osName.toLowerCase().startsWith("linux")) {
|
||||
rootDir = "/mnt/tem/obs";
|
||||
rootDir = "/mnt/team/obs";
|
||||
} else {
|
||||
ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
|
||||
String classPath = Objects.requireNonNull(contextClassLoader.getResource("")).getPath();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user