原因一:版本问题
springboot和springcould
2.1.5对应Greenwich.SR1
2.3.3对应Hoxton.SR7
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.5.RELEASE</version>
<relativePath/>
</parent>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Hoxton.SR7</version>
<type>pom</type>
<scope>import</scope>
</dependency>
原因二:子pom.xml找不到父pom.xml中的版本号
可能是没有加上<dependencyManagement>标签
单独使用dependencies和外嵌dependencyManagement区别:
单独使用dependencies时,即使在子项目中不写该依赖项,子项目仍然会从父项目中继承该依赖项(全部继承)