|
|
|
@ -11,7 +11,12 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
|
|
public class AustinApplication {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
|
|
|
|
|
// TODO 如果你需要使用apollo,将application.properties配置文件的 apollo.enabled 改为true
|
|
|
|
|
/**
|
|
|
|
|
* 如果你需要启动Apollo动态配置
|
|
|
|
|
* 1、启动apollo
|
|
|
|
|
* 2、将application.properties配置文件的 austin.apollo.enabled 改为true
|
|
|
|
|
* 3、下方的property替换真实的ip和port
|
|
|
|
|
*/
|
|
|
|
|
System.setProperty("apollo.config-service", "http://austin.apollo.config:5001");
|
|
|
|
|
SpringApplication.run(AustinApplication.class, args);
|
|
|
|
|
}
|
|
|
|
|