问题:spring-boot-starter-parent版本2.1.9.RELEASE,如何引入对应版本的spring-cloud-starter-bootstrap依赖。
解决:
1. 若仅为使用Apollo,最好改为引用spring-cloud-starter-config依赖(因为spring-cloud-starter-bootstrap最低版本3.0.0支持最低spring-boot-starter-parent版本为2.4.0,对于低版本的springboot没有bootstrap starter可以用 spring-cloud-starter-bootstrap 版本-掘金)
2. 找到springboot对应的springcloud版本(Release Train) Spring Cloud Alibaba与Spring Boot、Spring Cloud版本对应关系(springboot和cloud版本) | 半码博客
以springboot 2.1.9.RELEASE为例,对应Spring Cloud Release Train为Greenwich
3. 在该版本下找一个Spring Cloud Config版本 https://github.com/spring-projects/spring-cloud/wiki/Spring-Cloud-Greenwich-Release-Notes文章来源:https://uudwc.com/A/vNeDG
如选择Greenwich.SR4,它的Spring Cloud Config 版本为 2.1.5.RELEASE,引入依赖
https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-config/2.1.5.RELEASE文章来源地址https://uudwc.com/A/vNeDG