1. 增加了apollo 配置中心使用的 demo
2. 调整了apollo starter的pom, 增加了对于mvc starter的依赖
This commit is contained in:
28
examples/apollo-example/README.md
Normal file
28
examples/apollo-example/README.md
Normal file
@ -0,0 +1,28 @@
|
||||
## Apollo Client Demo
|
||||
使用 Apollo Starter 接入配置中心的 demo
|
||||
</br></br></br>
|
||||
|
||||
### 模块引入方式
|
||||
首先要在POM中引入parent包
|
||||
```
|
||||
<parent>
|
||||
<groupId>com.chinaunicom.ebtp</groupId>
|
||||
<artifactId>mall-ebtp-cloud-parent</artifactId>
|
||||
<version>0.0.1</version>
|
||||
</parent>
|
||||
```
|
||||
之后在依赖项中添加如下内容:
|
||||
```
|
||||
<dependency>
|
||||
<groupId>com.chinaunicom.ebtp</groupId>
|
||||
<artifactId>mall-ebtp-cloud-apollo-starter</artifactId>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
### 虚拟机参数
|
||||
目前要接入胜智云apollo配置中心,需要配置JVM虚拟机参数
|
||||
-Denv=DEV
|
||||
-Dapollo.configService=http://192.168.40.17:9228
|
||||
|
||||
### 胜智云apollo配置中心
|
||||
Apollo控制台在胜智云平台地址是http://192.168.40.17:16464,管理员账号为apollo/admin。
|
Reference in New Issue
Block a user