Spring Cloud
吃货时代
这个作者很懒,什么都没留下…
展开
-
hystrix-dashboard的精简实现,仪表盘显示,附源码
1.首先创建eureka server,hystrix仪表盘的显示需要注册到eureka上,此处省略了2.创建service-hystrix,pom.xml添加如下依赖: <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter</artifactId>原创 2020-06-11 16:34:30 · 190 阅读 · 0 评论 -
spring cloud config读取本地的配置文件/读取远程git/gitlab文件
1.不管用哪种方式读取配置文件,首先创建config服务端和客户端(1)创建server ,config-server,pom.xml如下<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="原创 2020-06-09 16:58:20 · 1361 阅读 · 0 评论 -
/actuator/bus-refresh访问404
1.首先要确认配置是否正确2.config动态配置分为服务端和客户端,服务端直接get访问即可http://localhost:8888/actuator/bus-refresh3.客户端则需要添加配置application.properties添加如下:spring.cloud.bus.enabled=truespring.cloud.bus.trace.enabled=truemanagement.endpoints.web.exposure.include=bus-refresh..原创 2020-06-09 11:21:11 · 1494 阅读 · 2 评论 -
spring cloud与spring boot的对应版本
1.大版本对应关系原创 2020-06-09 09:18:42 · 331 阅读 · 0 评论