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