微服务基础技术栈:
使用docker、k8s等技术栈:
微服务技术对比:
使用热度,从低到高
企业需求:
SpringCloud与SpringBoot的版本兼容:
服务拆分注意事项:
SpringCloud远程调用其他模块-最原始方法
使用RestTemplate类,根据url进行发送http请求,获得数据
(http的url地址为要调用模块的地址)
第一步,把RestTemplate注册进spring容器中:
第二步,使用RestTemplate发送http请求,获得数据