mirror of
https://github.com/getrebuild/rebuild.git
synced 2025-09-08 07:36:52 +08:00
BOOTING_TIME415
This commit is contained in:
parent
5b0fae5b92
commit
4daf68b621
2 changed files with 4 additions and 1 deletions
|
@ -129,7 +129,7 @@ public class Application implements ApplicationListener<ApplicationStartedEvent>
|
|||
|
||||
_CONTEXT = event.getApplicationContext();
|
||||
|
||||
long time = System.currentTimeMillis();
|
||||
long time = BootApplication.BOOTING_TIME415;
|
||||
boolean started = false;
|
||||
|
||||
final Timer timer = new Timer("Boot-Timer");
|
||||
|
|
|
@ -62,6 +62,7 @@ public class BootApplication extends SpringBootServletInitializer {
|
|||
|
||||
private static String CONTEXT_PATH;
|
||||
private static String TOMCAT_PORT;
|
||||
protected static long BOOTING_TIME415 = System.currentTimeMillis();
|
||||
|
||||
/**
|
||||
* 获取上下文地址,注意此地址尾部不含 `/`
|
||||
|
@ -107,6 +108,7 @@ public class BootApplication extends SpringBootServletInitializer {
|
|||
|
||||
public static void main(String[] args) {
|
||||
log.info("REBUILD starting ...");
|
||||
BOOTING_TIME415 = System.currentTimeMillis();
|
||||
if (devMode()) System.setProperty("spring.profiles.active", "dev");
|
||||
|
||||
// kill -15 `cat ~/.rebuild/rebuild.pid`
|
||||
|
@ -123,6 +125,7 @@ public class BootApplication extends SpringBootServletInitializer {
|
|||
@Override
|
||||
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
|
||||
log.info("REBUILD starting ...");
|
||||
BOOTING_TIME415 = System.currentTimeMillis();
|
||||
if (SystemUtils.IS_OS_WINDOWS) AnsiConsole.systemInstall();
|
||||
if (devMode()) System.setProperty("spring.profiles.active", "dev");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue