# boot-star-cloud **Repository Path**: wuhankj/boot-star-cloud ## Basic Information - **Project Name**: boot-star-cloud - **Description**: springcloud-demo - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-09-03 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #### 介绍 spring-cloud-demo #### 软件架构 软件架构说明 springboot2.1.6 + spring-cloud-dependencies:Greenwich.RELEASE #### 安装教程 1. 下载consul并安装 #### 使用说明 windows下启动consul: consul agent -dev  或者: consul agent -dev -ui -node=mx 运行:Producer1Application, Producer2Application, ConsumerApplication 1.查看consul结点:http://localhost:8500/ 2.查看服务个数:http://localhost:8521/consumer/services 3.轮寻调用服务:http://localhost:8521/consumer/discover 4.调用fegin服务: fegin-GET请求:localhost:8521/consumer/user/getName?name=95coder fegin-POST请求:localhost:8521/consumer/user/getUser fegin-POST请求:localhost:8521/consumer/order/getOrder/1234567890 #hystrix监控 1. 代码处理:启动类添加 @EnableHystrixDashboard @EnableCircuitBreaker 2. yml配置添加: management: endpoints: web: exposure: include: hystrix.stream base-path: / 3. 监控看板地址:http://localhost:8521/consumer/hystrix 4. 监控接口地址:http://localhost:8521/consumer/hystrix.stream