Skip to content

wood8899/agollo_demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agollo_Demo - Demo For Apollo

Apollo的使用Demo

主要用于验证Agollo客户端自动刷新功能

Dependence

使用go get方式

go get -u github.com/cihub/seelog
go get -u github.com/zouyx/agollo

使用gopm方式(推荐)

gopm get github.com/cihub/seelog -v -g
gopm get github.com/zouyx/agollo -v -g

推荐gopm,不需要翻墙

Installation

如果还没有安装Go开发环境,请参考以下文档Getting Started ,安装完成后,请执行以下命令:

Mac/Linux

./build.sh

Windows

请注意: 最好使用Go 1.8进行编译

Run

完成编译后

  • 进入build文件夹,配置app.properties(参考:使用配置
  • 执行
    • Mac/Linux : ./agollo-demo
    • Windows : agollo-demo.exe  

Validate

  • 验证所有字段
http://localhost:9000/check
  • 验证某个字段
http://localhost:9000/check?key=apolloKey

About

👾Demo For Agollo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 79.5%
  • Shell 20.5%