|
@@ -23,6 +23,7 @@ import cn.com.qmth.examcloud.commons.util.JsonUtil;
|
|
import cn.com.qmth.examcloud.commons.util.OKHttpUtil;
|
|
import cn.com.qmth.examcloud.commons.util.OKHttpUtil;
|
|
import cn.com.qmth.examcloud.commons.util.PropertiesUtil;
|
|
import cn.com.qmth.examcloud.commons.util.PropertiesUtil;
|
|
import cn.com.qmth.examcloud.commons.util.StringUtil;
|
|
import cn.com.qmth.examcloud.commons.util.StringUtil;
|
|
|
|
+import cn.com.qmth.examcloud.commons.util.Util;
|
|
import cn.com.qmth.examcloud.web.cloud.AppSelf;
|
|
import cn.com.qmth.examcloud.web.cloud.AppSelf;
|
|
import cn.com.qmth.examcloud.web.cloud.AppSelfHolder;
|
|
import cn.com.qmth.examcloud.web.cloud.AppSelfHolder;
|
|
import okhttp3.Response;
|
|
import okhttp3.Response;
|
|
@@ -105,7 +106,8 @@ public class AppBootstrap {
|
|
context = SpringApplication.run(primarySource, newArgs);
|
|
context = SpringApplication.run(primarySource, newArgs);
|
|
noticeConfigCenter("success");
|
|
noticeConfigCenter("success");
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
- noticeConfigCenter("failure:" + e.getMessage());
|
|
|
|
|
|
+ String stackTrace = Util.getStackTrace(e);
|
|
|
|
+ noticeConfigCenter("failure:\n" + stackTrace);
|
|
log.error("fail to run spring app.", e);
|
|
log.error("fail to run spring app.", e);
|
|
System.exit(-1);
|
|
System.exit(-1);
|
|
}
|
|
}
|