随笔分类 - spring cloud
摘要:问题表现spring boot 版本 2.0.6spring cloud 版本 Finchley.SR2 使用spring-cloud-starter-zipkin + 独立部署的zipkin 进行链路追踪,但是如果项目同时使用 rabbitmq和spring-cloud-starter-bus-a
阅读全文
摘要:上篇文章介绍了 Gataway 和注册中心的使用,以及 Gataway 中 Filter 的基本使用,这篇文章我们将继续介绍 Filter 的一些常用功能。 修改请求路径的过滤器 StripPrefix Filter StripPrefix Filter 是一个请求路径截取的功能,我们可以利用这个功
阅读全文
摘要:Spring Cloud Gateway 的 Filter 的生命周期不像 Zuul 的那么丰富,它只有两个:“pre” 和 “post”。 PRE: 这种过滤器在请求被路由之前调用。我们可利用这种过滤器实现身份验证、在集群中选择请求的微服务、记录调试信息等。 POST:这种过滤器在路由到微服务以后
阅读全文
摘要:gateway-server-eureka 1. File-->new spring starter project 2.add dependency 3.Edit application.yml 配置说明: spring.cloud.gateway.discovery.locator.enable
阅读全文
摘要:Spring 官方最终还是按捺不住推出了自己的网关组件:Spring Cloud Gateway ,相比之前我们使用的 Zuul(1.x) 它有哪些优势呢?Zuul(1.x) 基于 Servlet,使用阻塞 API,它不支持任何长连接,如 WebSockets,Spring Cloud Gatewa
阅读全文
摘要:zipkin-server 1. File-->new spring starter project 2.add dependency <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM
阅读全文
摘要:原創: 【spring cloud】spring cloud集成zipkin报错:Prometheus requires that all meters with the same name have the same set of tag keys. spring boot 2.0.X 的版本,整
阅读全文
摘要:尊重原創: https://www.cnblogs.com/sxdcgaq8080/p/10007420.html 一直对于maven中解决jar包依赖问题的解决方法纠结不清: 下面这个例子可以说明一个很简单的解决方法: 项目启动报错: 解决方案: 直接看报错内容,可以看出 是log4j和logba
阅读全文
摘要:hystrix-dashboard-turbine-server 1. File-->new spring starter project 2.add dependency 3.Edit application.yml 4.program 5.Run http://localhost:9000/hy
阅读全文
摘要:hystrix-dashboard-server 1. File-->new spring starter project 2.add dependency 3.Edit application.yml 4.program 5.Run visit : http://localhost:9000/hy
阅读全文
摘要:producer 1. File-->new spring starter project 2.add dependency 3.Edit application.yml 4.program 5.Run visit: http://localhost:8005/getHello?name=smile
阅读全文
摘要:config-server-eureka-bus-rabbitmq 1. File-->new spring starter project 2.add dependency 3.Edit application.yml pplication.properties 4.program 5.Run v
阅读全文
摘要:config-server-eureka project 1. File-->new spring project 2.add dependency 3.Edit application.yml 4.program 5.Run visit : http://localhost:8000/smile/
阅读全文
摘要:config-server 1. File-->new spring project: config-server 2.add dependency 3.Edit application.yml gitlab 上建立文件夹config-repo,上传配置文件 4.program ConfigServ
阅读全文
摘要:Eureka-server 1.file-->new--> spring starter project : eureka-server 2.添加依赖 3.修改port:新建application.yml: 4. EurekaServerApplication添加注解@EnableEurekaSer
阅读全文

浙公网安备 33010602011771号