摘要: 1.pom.xml 增加断路器相关包 <!--断路器--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-hystrix</artifactId> 阅读全文
posted @ 2020-11-17 17:44 脑袋有点大 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 1.在view端pom.xml增加如下。 <!--用于访问路径/actuator/bus-refresh--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actua 阅读全文
posted @ 2020-11-17 14:54 脑袋有点大 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 1.在视图微服务product-view的pom.xml中增加 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-config</artifactId> </depen 阅读全文
posted @ 2020-11-17 11:55 脑袋有点大 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 1.创建config-server 2.pom.xml配置 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocat 阅读全文
posted @ 2020-11-17 08:41 脑袋有点大 阅读(108) 评论(0) 推荐(0) 编辑