图源:laiketui.com 在上一篇文章中我们介绍了如何使用 Eureka 作为注册中心,并且对注册中心里的服务使用 RestTemplate 做负载均衡调用。本篇文章我们来看负载均衡调用是如何实现的,以及如何设置其中的调度规则。 原理 源码分析 先启动项目的所有模块,其中 shopping-order 模块用 debug 模式启动。 然后在RestTemplate调用接口的地方打上断点,进行调试,一步步查看负载均衡是在何时发生的。 最终我们会定位到一个InterceptingClientHttpRequest…
SpringBoot
SpringMVC
MySQL
Java
php
Linux
设计模式
HTTP
Wordpress
Python
Activiti
Redis
SpringCloud
debug
前端开发
Maven
生活随笔
Spring Easy
MD-img
oa-demo
油猴脚本
i-tree
auto-hot-key
bilibili-down
haokan-down
PEP中文
M3U-Helper
我的Windows软件列表
