Apollo部署相关
springboot版本
org.springframework.boot
spring-boot-starter-parent
2.1.4.RELEASE
在pom引入Apollo客户端依赖
com.ctrip.framework.apollo
apollo-client
1.1.1
我部署在公司内网192.168.0.114服务器上
# 应用ID(在Apollo服务端新增项目添加的应用ID)
app.id=123456
# apollo-configservice地址
apollo.meta=http://192.168.0.114:8080/
4、客户端进行获取
基于注解方式进行获取,在Application的main方法上加上@EnableApolloConfig注解