mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
26 lines
630 B
Markdown
26 lines
630 B
Markdown
# ANS Consumer Ribbon Example
|
||
|
||
## 项目说明
|
||
|
||
本项目展示了,在Spring Cloud规范下,如何以最简单且免费的方式,使用Ribbon客户端,调用一个服务。
|
||
|
||
## 示例
|
||
|
||
### 准备工作
|
||
|
||
ans-provider-example已经成功启动,并发布服务成功。
|
||
|
||
### 启动应用
|
||
|
||
直接运行main class,即`ConsumerApplication`。
|
||
|
||
### 查看效果
|
||
|
||
使用`curl`命令可以看到应用打印出相应的调用日志,命令如下。
|
||
|
||
curl http://127.0.0.1:18082/
|
||
|
||
|
||
如果您对 Spring Cloud ANS Starter 有任何建议或想法,欢迎提交 issue 中或者通过其他社区渠道向我们反馈。
|
||
|