摘要: 服务端 rest api @RequestMapping(value = "/phone") public ResponsePhone getPhone(@RequestParam String uid, @RequestParam List<String> orderidlist){} 阅读全文
posted @ 2019-11-21 17:06 星朝 阅读(268) 评论(0) 推荐(0)
摘要: 启动spring cloud中的网关,报错: APPLICATION FAILED TO START Description:The bean 'httpClient', defined in class path resource [org/springframework/cloud/openfe 阅读全文
posted @ 2019-11-21 17:03 星朝 阅读(2740) 评论(0) 推荐(0)
摘要: 前言: 最近开发了Zuul网关的实现和Spring Cloud Gateway实现,对比Spring Cloud Gateway发现后者性能好支持场景也丰富。在高并发或者复杂的分布式下,后者限流和自定义拦截也很棒。   提示: 本文主要列出本人开发的Zuul网关核心代码以及Spring C 阅读全文
posted @ 2019-11-21 16:53 星朝 阅读(3106) 评论(0) 推荐(0)
摘要: 0.代码 https://github.com/fengdaizang/OpenAPI 1.引入相关依赖 pom文件如下: <?xml version="1.0" encoding="UTF 8"?> <project xmlns="http://maven.apache.org/ 阅读全文
posted @ 2019-11-21 16:52 星朝 阅读(886) 评论(0) 推荐(0)
摘要: 1、什么是Spring Cloud GatewaySpring Cloud Gateway是Spring官方基于Spring 5.0,Spring Boot 2.0和Project Reactor等技术开发的网关,Spring Cloud Gateway旨在为微服务架构提供一种简单而有效的统一的AP 阅读全文
posted @ 2019-11-21 16:39 星朝 阅读(266) 评论(0) 推荐(0)
摘要: 原文: Consul基本使用 date: 2019 05 13 17:01:37 前言 官网介绍Consul是一个分布式服务网格(Service Mesh)解决方案... 而我目前的理解是提供了分布式系统中的服务发现和配置解决方案, 使用go实现, 目前在github的star是15k, 远超Net 阅读全文
posted @ 2019-11-21 15:12 星朝 阅读(874) 评论(0) 推荐(0)
摘要: 最终成功版。 pom引入mavn依赖: <! consul > <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring cloud start 阅读全文
posted @ 2019-11-21 15:09 星朝 阅读(3455) 评论(0) 推荐(0)
摘要: <! flowchart 箭头图标 勿删 Spring Cloud体系中提供了Config组件来进行配置服务管理。而Consul除了提供服务注册与发现功能外,同时也提供配置管理功能。本位将介绍如何结合Spring Cloud + Consul实现配置管理。 本文中使用的工程及环境参考上篇文章《Spr 阅读全文
posted @ 2019-11-21 14:55 星朝 阅读(532) 评论(0) 推荐(0)
摘要: 本文基本上摘自纯洁的微笑的博客 http://www.ityouknow.com/springcloud/2018/07/20/spring cloud consul.html . 感谢作者的付出.  =============================服务注册基础组件选择===== 阅读全文
posted @ 2019-11-21 11:46 星朝 阅读(1210) 评论(0) 推荐(0)
摘要: <! 一个博主专栏付费入口 <! 一个博主专栏付费入口结束 <! flowchart 箭头图标 勿删 使用consul 介绍 Consul包含多个组件,但是作为一个整体,为你的基础设施提供服务发现和服务配置的工具.他提供以下关键特性: 服务发现 Consul的客户端可用提供一个服务,比如 api 或 阅读全文
posted @ 2019-11-21 10:32 星朝 阅读(1819) 评论(0) 推荐(0)
摘要: <! flowchart 箭头图标 勿删 一、背景介绍 在分布式系统中动态配置中,可以避免重复重启服务,动态更改服务参数等。一句话非常重要。 另外一篇文章也是这样说的,哈哈。 Consul 作为Spring 推荐的分布式调度系统其也具备配置中心的功能, 我们也可以利用其作为配置中心,其client端 阅读全文
posted @ 2019-11-21 10:20 星朝 阅读(1374) 评论(0) 推荐(0)
摘要: <! python安装手册开始 <! python安装手册结束 版权声明:本文为博主原创文章,遵循 CC 4.0 BY SA 版权协议,转载请附上原文出处链接和本声明。 本文链接:https://blog.csdn.net/qq_36027670/article/details/79701775 < 阅读全文
posted @ 2019-11-21 09:36 星朝 阅读(548) 评论(0) 推荐(0)