现在的Spring Cloud Alibaba由于没有纳入到Spring Cloud的主版本管理中,所以需要单独引用
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-dependencies</artifactId> <version>Finchley.SR1</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-alibaba-dependencies</artifactId> <version>0.2.1.RELEASE</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement>
|
- 由于Spring Cloud基于Spring Boot构建,而Spring Cloud Alibaba又基于Spring Cloud Common的规范实现,所以当我们使用Spring Cloud Alibaba来构建微服务应用的时候,需要知道这三者之间的版本关系。
Spring Boot |
Spring Cloud |
Spring Cloud Alibaba |
2.1.x |
Greenwich |
0.9.x |
2.0.x |
Finchley |
0.2.x |
1.5.x |
Edgware |
0.1.x |
1.5.x |
Dalston |
0.1.x |