From 33be0079f04dca0f5bdd3de30df533ca90ca6957 Mon Sep 17 00:00:00 2001 From: EightMonth Date: Thu, 22 Aug 2024 10:37:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E5=8A=A8=E6=88=90=E5=8A=9F=E6=89=93?= =?UTF-8?q?=E5=8D=B0xxl-job-admin=E8=AE=BF=E9=97=AE=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/xxl/job/admin/XxlJobAdminApplication.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/jeecg-boot/jeecg-server-cloud/jeecg-visual/jeecg-cloud-xxljob/src/main/java/com/xxl/job/admin/XxlJobAdminApplication.java b/jeecg-boot/jeecg-server-cloud/jeecg-visual/jeecg-cloud-xxljob/src/main/java/com/xxl/job/admin/XxlJobAdminApplication.java index fce10a81..59593871 100644 --- a/jeecg-boot/jeecg-server-cloud/jeecg-visual/jeecg-cloud-xxljob/src/main/java/com/xxl/job/admin/XxlJobAdminApplication.java +++ b/jeecg-boot/jeecg-server-cloud/jeecg-visual/jeecg-cloud-xxljob/src/main/java/com/xxl/job/admin/XxlJobAdminApplication.java @@ -1,16 +1,27 @@ package com.xxl.job.admin; +import lombok.extern.slf4j.Slf4j; import org.springframework.boot.SpringApplication; 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 */ @SpringBootApplication +@Slf4j public class XxlJobAdminApplication { 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" + + "----------------------------------------------------------"); } } \ No newline at end of file