|
|
|
@ -36,6 +36,9 @@ public class JeecgSentinelApplication {
|
|
|
|
|
triggerSentinelInit();
|
|
|
|
|
ConfigurableApplicationContext application = SpringApplication.run(JeecgSentinelApplication.class, args);
|
|
|
|
|
Environment env = application.getEnvironment();
|
|
|
|
|
// 目前jeecg-sentinel 1.8.3 版本存在alibaba-sentinel 1.8.3版本 启动nacos数据源导致配置不生效的问题,以下为临时处理办法
|
|
|
|
|
System.getProperties().setProperty("sentinel.dashboard.auth.username", env.getProperty("sentinel.dashboard.auth.username"));
|
|
|
|
|
System.getProperties().setProperty("sentinel.dashboard.auth.password", env.getProperty("sentinel.dashboard.auth.password"));
|
|
|
|
|
String port = env.getProperty("server.port");
|
|
|
|
|
log.info("\n----------------------------------------------------------\n\t" +
|
|
|
|
|
"Application SentinelDashboard is running! Access URLs:\n\t" +
|
|
|
|
|