首页 > 其他分享 >SpringCloud框架开发

SpringCloud框架开发

时间:2022-09-19 14:15:09浏览次数:101  
标签:服务 框架 dependencyMangement 版本号 SpringCloud 开发 子项目 标签 Starting

 1.是什么微服务

  是一种架构模式,他提倡将单一应用程序划分一组小的服务,服务之间的相互配合、互相协调。

  2.Spring Cloud简介

  SpringClound等于分布式微服务架构的一站式解决方案,是多种微服务架构落地技术的集合体,.Spring Cloud 提供了构建分布式系统所需的“全家桶”

 3.springClound和springBoot的版本对应

  springClound-Version              springBoot-Version

  2021.0.x aka Jubilee     2.6.x, 2.7.x (Starting with 2021.0.3)

  2020.0.x aka Ilford        2.4.x, 2.5.x (Starting with 2020.0.3)

  Hoxton                          2.2.x, 2.3.x (Starting with SR5)

  Greenwich                    2.1.x

  Finchley                        2.0.x

  Edgware                       1.5.x

  Dalston                         1.5.x

  4.本次开发选型

  cloud:Hoxton.SR1

  boot:2.2.2.RELEASE

  cloud alibaba:2.1.0.RRLEASE

  Java:java8

  Maven:3.5以上

  mysql:5.7以上

  5.关于Coloud各种组件的停更/升级/替换

  

 

  6.maven中的dependencyMangement

  dependencyMangement标签提供了一种管理父工程依赖版本号的方式使用pom.xml中的dependencyMangement标签能让所有在子项目中引用一个依赖而不显示列出的版本号,maven会沿着父子层次向上走,直到找到拥有dependencyMangement标签的项目,然后会使用dependencyMangement标签中的版本号,若子项目指定了版本号,那么使用子项目指定的版本.

  7.配置RestTemplate

  该方法提供了多种便捷式访问远程Http服务的方法,是一种简单便捷的访问restfult服务模块类,是spring提供的用于访问rest服务的客户端模板工具集

  用法:

  

 

  

  

 

  

  

 

 

  

  

 

 

  

标签:服务,框架,dependencyMangement,版本号,SpringCloud,开发,子项目,标签,Starting
From: https://www.cnblogs.com/WMZY/p/16707493.html

相关文章