RestTemplate 基本介绍 RestTemplate 是Spring 提供的用于访问Rest 服务的模板类 RestTemplate 提供了多种便捷访问远程Http 服务的方法 老韩说明:小伙伴可以这样理解, 通过RestTemplate, 我们可以发出http 请求(支持Restful 风格), 去调用Controller 提供的API 接口, 就像我们使用浏览器发出http 请求,调用该API 接口一样. 使用简单便捷 官网 https://docs.spring.io/spring-framework/docs/5.2.2.RELEASE/javadoc-api/org/springframework/web/client/RestTemplate.html本栏目推荐文章类模板实现简单的数组spring与设计模式之三代理模式深入理解spring框架:剖析多线程模式下数据库连接类模板和友元类模板分文件编写第二章 Spring Boot 整合 Kafka消息队列 生产者Spring表达式语言(SPEL)学习(03)Spring事务状态处理Spring踩坑如何让spring扫描到自定义注解的组件