Files
mall-ebtp-cloud/examples/apollo-example/README.md
2020-10-29 10:50:37 +08:00

31 lines
764 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 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。