当前位置: 代码迷 >> 综合 >> Spring Cloud 学习(二)——Eureka注册中心的搭建(2.0.2)
  详细解决方案

Spring Cloud 学习(二)——Eureka注册中心的搭建(2.0.2)

热度:24   发布时间:2023-12-15 21:06:33.0

一、创建maven项目工程

二、加入依赖

<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.0.2.RELEASE</version></parent><!-- 管理依赖 --><dependencyManagement><dependencies><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-dependencies</artifactId><version>Finchley.M7</version><type>pom</type><scope>import</scope></dependency></dependencies></dependencyManagement><dependencies><!--SpringCloud eureka-server --><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-netflix-eureka-server</artifactId></dependency></dependencies><!-- 注意: 这里必须要添加, 否者各种依赖有问
  相关解决方案