赞
踩
最近在学习微服务,自己也实践了一下Eureka服务端集群搭建方法,其中也踩了很多的坑,记录下来.才发现学习过程中以为很简单的问题在实践的时候遇到了很多的问题,在一步步解决的过程中也学到了很多.
我以搭建三个server集群为例,一步步来实现一下,
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>2.1.2.RELEASE</version>
- <relativePath/> <!-- lookup parent from repository -->
- </parent>
- <groupId>com.example</groupId>
- <artifactId>server01</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <name>server01</name>
- <description>Demo project for Spring Boot</description>
-
- <properties>
- <java.version>1.8</java.version>
- <spring-cloud.version>Greenwich.RELEASE</spring-cloud.version>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。