赞
踩
父项目pom.xml配置
<!--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.cloud</groupId> <artifactId>spring-cloud-dependencies</artifactId> <version>Hoxton.SR3</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <!--3.这里是所有子项目都可以用的jar包--> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </dependency> </dependencies>
eureka-server pom.xml配置
<parent> <artifactId>springcloud-netflix-parent</artifactId> <groupId>com.hl</groupId> <version>1.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>springcloud-eure
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。