[Change] Dockerfile.sample 调整构建指令顺序以充分利用构建缓存;

[Fix] Main 修复SystemProperties设置null抛出NPE的问题;
This commit is contained in:
2020-05-04 17:07:39 +08:00
parent 46cb47c7d1
commit 40c5284be2
2 changed files with 4 additions and 3 deletions

View File

@ -129,10 +129,10 @@ public class Main {
if(env != null) {
System.setProperty("cgj." + sysPropKey, env);
return true;
} else {
} else if(defaultValue != null) {
System.setProperty("cgj." + sysPropKey, defaultValue);
return false;
}
return false;
}
@Command