优化 Application 启动完成输出的提示信息

This commit is contained in:
thinkgem
2025-10-19 13:24:42 +08:00
parent fd8d036cb1
commit 49d67f7b81
4 changed files with 26 additions and 25 deletions

View File

@@ -25,12 +25,12 @@ public class MiniApplication extends SpringBootServletInitializer {
public static void main(String[] args) {
SpringApplication.run(MiniApplication.class, args);
logger.info(
"\r\n\r\n==============================================================\r\n"
+ "\r\n 启动完成,监控地址http://127.0.0.1:"
+ Global.getProperty("server.port") + FileUtils.path("/"
"\n\n==============================================================\n"
+ "\n 启动完成,访问地址http://127.0.0.1:{}\n"
+ "\n==============================================================\n",
Global.getProperty("server.port") + FileUtils.path("/"
+ Global.getProperty("server.servlet.context-path")
+ Global.getAdminPath()) + "/state/server/index"
+ "\r\n\r\n==============================================================\r\n");
+ Global.getAdminPath()) + "/state/server/index");
}
@Override