# 登陸已經啓動成功的apollo項目
http://192.168.233.131:8070/
# 新建一個項目 => 記錄下 appid 就可以
# 新建一個測試key ==> apolloTest
自己的java 項目配置方式
# 在項目新建
resources\META-INF\app.properties
# 在 app.properties 中添加
app.id=dkz_test_one_apollo // you appid
apollo.bootstrap.enabled=true
apollo.bootstrap.eagerLoad.enabled=true
# you apollo url
apollo.meta=http://192.168.233.131:8080
# 在啓動類上 Application 上添加註解
@EnableApolloConfig
# 新建測試類 在測試類中注入
@Value("${apolloTest}")
private String testApolloValue;
# 然後輸出
System.out.println("testApolloValue ==>"+testApolloValue);