mirror of https://github.com/jeecgboot/jeecg-boot
parent
31a865f5e0
commit
33be0079f0
@ -1,16 +1,27 @@
|
|||||||
package com.xxl.job.admin;
|
package com.xxl.job.admin;
|
||||||
|
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
import org.springframework.context.ConfigurableApplicationContext;
|
||||||
|
import org.springframework.core.env.Environment;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author xuxueli 2018-10-28 00:38:13
|
* @author xuxueli 2018-10-28 00:38:13
|
||||||
*/
|
*/
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
|
@Slf4j
|
||||||
public class XxlJobAdminApplication {
|
public class XxlJobAdminApplication {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
SpringApplication.run(XxlJobAdminApplication.class, args);
|
ConfigurableApplicationContext application = SpringApplication.run(XxlJobAdminApplication.class, args);
|
||||||
|
Environment env = application.getEnvironment();
|
||||||
|
String port = env.getProperty("server.port");
|
||||||
|
String path = env.getProperty("server.servlet.context-path");
|
||||||
|
log.info("\n----------------------------------------------------------\n\t" +
|
||||||
|
"Application XxlJobAdmin is running! Access URLs:\n\t" +
|
||||||
|
"Local: \t\thttp://localhost:" + port + path + "/\n\t" +
|
||||||
|
"----------------------------------------------------------");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in new issue