feat(dashboard): 添加启动日志输出功能

- 引入AuthorityRuleController类
- 添加SLF4J日志框架支持
- 在main方法中增加启动成功日志输出
- 添加中文和英文启动完成提示信息
This commit is contained in:
mshe 2025-11-21 09:48:24 +08:00
parent ae485fa9f5
commit 93e2273b58
1 changed files with 6 additions and 0 deletions

View File

@ -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() {