From 93e2273b5868ce0a8eb9337ca2933c00c4e5dc6e Mon Sep 17 00:00:00 2001 From: mshe <666666666@666666666.666666666> Date: Fri, 21 Nov 2025 09:48:24 +0800 Subject: [PATCH] =?UTF-8?q?feat(dashboard):=20=E6=B7=BB=E5=8A=A0=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E6=97=A5=E5=BF=97=E8=BE=93=E5=87=BA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 引入AuthorityRuleController类 - 添加SLF4J日志框架支持 - 在main方法中增加启动成功日志输出 - 添加中文和英文启动完成提示信息 --- .../csp/sentinel/dashboard/DashboardApplication.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/DashboardApplication.java b/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/DashboardApplication.java index f7486462..2e35390c 100755 --- a/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/DashboardApplication.java +++ b/sentinel-dashboard/src/main/java/com/alibaba/csp/sentinel/dashboard/DashboardApplication.java @@ -15,8 +15,11 @@ */ package com.alibaba.csp.sentinel.dashboard; +import com.alibaba.csp.sentinel.dashboard.controller.AuthorityRuleController; import com.alibaba.csp.sentinel.init.InitExecutor; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @@ -27,10 +30,13 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; */ @SpringBootApplication public class DashboardApplication { + private final static Logger logger = LoggerFactory.getLogger(DashboardApplication.class); public static void main(String[] args) { triggerSentinelInit(); SpringApplication.run(DashboardApplication.class, args); + logger.info("Sentinel dashboard start success.........."); + logger.info("Sentinel dashboard 启动完成.........."); } private static void triggerSentinelInit() {