mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2025-09-18 17:48:08 +08:00
完善启动脚本
This commit is contained in:
@@ -32,8 +32,10 @@ public class ConfigRefreshComponent {
|
||||
public void run() {
|
||||
try {
|
||||
Properties properties = new Properties();
|
||||
String userDir = System.getProperty("user.dir");
|
||||
Properties properties1 = System.getProperties();
|
||||
String userDir = System.getenv("KKFILEVIEW_BIN_FOLDER");
|
||||
if (userDir == null) {
|
||||
System.getProperty("user.dir");
|
||||
}
|
||||
if (userDir.endsWith("bin")) {
|
||||
userDir = userDir.substring(0, userDir.length() - 4);
|
||||
}
|
||||
|
Reference in New Issue
Block a user