
spring cloud
qinweiVae
这个作者很懒,什么都没留下…
展开
-
spring cloud config 中文乱码
在使用 spring cloud config 时,如果在 properties 文件里面有中文的话,会出现乱码。 乱码的原因是:spring 默认使用org.springframework.boot.env.PropertiesPropertySourceLoader 来加载配置,底层是通过调用 Properties 的 load 方法,而load方法输入流的编码是 ISO 8859-1...原创 2018-04-16 15:03:20 · 5742 阅读 · 9 评论 -
Spring Cloud Config 使用 JDBC 方式
Config Server <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot原创 2018-06-11 16:47:22 · 3838 阅读 · 1 评论 -
Spring Cloud Sleuth 整合 Zipkin
Spring Cloud Sleuth 是分布式服务跟踪,Zipkin可以帮助收集时间数据,解决在microservice架构下的延迟问题。<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.or...原创 2018-05-07 17:38:19 · 488 阅读 · 0 评论 -
Spring Cloud Zuul
Spring Cloud Zuul 是实现 API 网关的功能&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/X原创 2018-05-07 17:11:57 · 275 阅读 · 0 评论 -
Spring Cloud Config
Config Server<?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="ht原创 2018-05-07 16:39:45 · 371 阅读 · 0 评论 -
Spring Cloud Feign
Spring Cloud Feign 其实是整合了Spring Cloud Ribbon 和 Spring Cloud Hystrix<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/200...原创 2018-05-07 16:18:31 · 228 阅读 · 0 评论 -
Spring Cloud Ribbon && Hystrix
Ribbon 是实现客户端负载均衡的<?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:schemaLocati...原创 2018-05-07 15:12:14 · 419 阅读 · 0 评论 -
Spring Cloud Eureka
搭建 eureka-serverEureka在CAP理论中属于AP,只要有一台Eureka还在,就能保证注册服务可用(保证可用性),只不过查到的信息可能不是最新的(不保证强一致性)。<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:...原创 2018-05-07 10:31:59 · 10576 阅读 · 0 评论 -
Spring Boot Admin
Spring Boot Admin 是一个针对spring-boot的actuator接口进行UI美化封装的监控工具。<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLS...原创 2018-05-09 11:34:13 · 606 阅读 · 0 评论 -
Spring Cloud Config 配置 git 时遇到的坑
今天在看Spring Cloud Config,配置时使用自己虚拟机上搭建的git,结果一直报错,查了好久终于解决了。pom.xml 加上下面的配置 <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> ...原创 2018-04-12 17:23:34 · 8744 阅读 · 7 评论 -
spring cloud config 默认端口号
无论你在 Config Server 中配置的端口号是什么,Config Client 启动时,都默认会去访问 Server 的 8888 端口。解决方法: 在resources文件夹下,新建 bootstrap.properties 文件( bootstrap.yml 也可以) 这样,Client 启动后就会访问 Server 中配置的端口号了。#配置在application.p...原创 2018-04-16 15:30:51 · 4956 阅读 · 1 评论 -
Spring Cloud Consul
先去官网下载 https://www.consul.io/downloads.html 解压unzip consul_1.1.0_linux_amd64.zip -d /home/qinwei/consul/在 .bash_profile 中添加 export PATH=$PATH:/home/qinwei/consulvim .bash_profilesource...原创 2018-06-05 10:08:37 · 373 阅读 · 0 评论