先创建父项目导入依赖
<!--1.管理 SpringBoot的jar包-->
<!--SpringBoot-->
<parent>
<groupId> org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.5.RELEASE</version>
</parent>
<!--2.管理 SpringCloud的jar包,父项目只管理,不引用-->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework