From 733dd78e922f8314d0f910983cd1d88420590037 Mon Sep 17 00:00:00 2001 From: Jie Zheng <201507802@qq.com> Date: Wed, 15 Jan 2025 15:07:01 +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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eladmin-system/src/main/java/me/zhengjie/AppRun.java b/eladmin-system/src/main/java/me/zhengjie/AppRun.java index ad126018..8bdcd029 100644 --- a/eladmin-system/src/main/java/me/zhengjie/AppRun.java +++ b/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; @@ -33,6 +34,7 @@ import org.springframework.web.bind.annotation.RestController; * @author Zheng Jie * @date 2018/11/15 9:20:19 */ +@Slf4j @EnableAsync @RestController @Api(hidden = true) @@ -47,6 +49,10 @@ public class AppRun { // 或者在 application.yml 添加文件路径,方便 kill,kill `cat /home/eladmin/app.pid` springApplication.addListeners(new ApplicationPidFileWriter()); springApplication.run(args); + log.info("---------------------------------------------"); + log.info("Local: {}", "http://localhost:8000"); + log.info("Swagger: {}", "http://localhost:8000/doc.html"); + log.info("---------------------------------------------"); } @Bean