From 9ce4838a681cd32d6cbba7ede9b9e21b709be36f Mon Sep 17 00:00:00 2001 From: Jie Zheng <201507802@qq.com> Date: Fri, 27 Dec 2024 17:58:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E5=92=8CSwagger=E8=AE=BF=E9=97=AE=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../eladmin-system/src/main/java/me/zhengjie/AppRun.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/eladmin/eladmin-system/src/main/java/me/zhengjie/AppRun.java b/eladmin/eladmin-system/src/main/java/me/zhengjie/AppRun.java index 442448c..07befa2 100644 --- a/eladmin/eladmin-system/src/main/java/me/zhengjie/AppRun.java +++ b/eladmin/eladmin-system/src/main/java/me/zhengjie/AppRun.java @@ -16,6 +16,7 @@ package me.zhengjie; import io.swagger.annotations.Api; +import lombok.extern.slf4j.Slf4j; import me.zhengjie.annotation.rest.AnonymousGetMapping; import me.zhengjie.utils.SpringContextHolder; import org.springframework.boot.SpringApplication; @@ -30,6 +31,7 @@ import org.springframework.web.bind.annotation.RestController; * @author Zheng Jie * @date 2018/11/15 9:20:19 */ +@Slf4j @EnableAsync @RestController @Api(hidden = true) @@ -43,6 +45,11 @@ public class AppRun { // 或者在 application.yml 添加文件路径,方便 kill,kill `cat /home/eladmin/app.pid` springApplication.addListeners(new ApplicationPidFileWriter()); springApplication.run(args); + log.info("---------------------------------------------"); + log.info("Backend service started successfully"); + log.info("Local: {}", "http://localhost:8000"); + log.info("Swagger: {}", "http://localhost:8000/doc.html"); + log.info("---------------------------------------------"); } @Bean