# apollo-helloworld
**Repository Path**: anymijun/apollo-helloworld
## Basic Information
- **Project Name**: apollo-helloworld
- **Description**: springboot apollo springboot 结合 ctripcorp apollo 例子
- **Primary Language**: Java
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2018-04-12
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# apollo-helloworld
springboot 结合 ctripcorp apollo 例子
- 步骤:
1. 按照[Apollo(阿波罗)](https://github.com/ctripcorp/apollo)官方安装好相关环境,具体安装见[分布式部署指南](https://github.com/ctripcorp/apollo/wiki/分布式部署指南)
2. 创建springboot 项目,添加 @EnableApolloConfig 注解
3. 创建classpath:/META-INF/app.properties 文件,并把app.id与[Apollo(阿波罗)](https://github.com/ctripcorp/apollo)平台创建的项目app.id相对应
4. env来指定环境(三种方法,)启动脚本,系统,/opt配置文件 [详细](https://github.com/ctripcorp/apollo/wiki/Java客户端使用指南#121-appid)
5. 本地缓存目录请确保/opt/data或C:\opt\data\目录存在 注意权限 [详细](https://github.com/ctripcorp/apollo/wiki/Java客户端使用指南#122-environment)
6. 引入包 [详见](https://github.com/ctripcorp/apollo/wiki/分布式部署指南#28-部署apollo-client)
```
com.ctrip.framework.apollo
apollo-client
0.10.2
com.ctrip.framework.apollo
apollo-core
0.10.2