1. gateway:接入 nacos 配置中心,可支持动态路由
2. system-server:接入 nacos 配中心
This commit is contained in:
@@ -2,12 +2,21 @@ package cn.iocoder.yudao.gateway;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.context.ConfigurableApplicationContext;
|
||||
import org.springframework.core.env.Environment;
|
||||
|
||||
@SpringBootApplication
|
||||
public class GatewayServerApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(GatewayServerApplication.class, args);
|
||||
// SpringApplication.run(GatewayServerApplication.class, args);
|
||||
|
||||
// 启动 Spring Boot 应用
|
||||
ConfigurableApplicationContext context = SpringApplication.run(GatewayServerApplication.class, args);
|
||||
|
||||
// 查看 Environment
|
||||
Environment environment = context.getEnvironment();
|
||||
System.out.println(environment);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user