修改高可用注册中心配置

This commit is contained in:
winLsy
2017-12-21 15:36:42 +08:00
parent 3bdeef63a6
commit 0e2c51cb97
3 changed files with 3 additions and 11 deletions
+1 -5
View File
@@ -24,11 +24,7 @@
<!--注册中心-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-eureka</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
<artifactId>spring-cloud-starter-eureka-server</artifactId>
</dependency>
<!--web-->
<dependency>
@@ -12,7 +12,7 @@ import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
* @since 1.0
*/
@SpringBootApplication
@EnableEurekaServer //开启注册中心相关服务
@EnableEurekaServer //开启注册中心相关服务,默认配置注册中心会注册自己
public class EurekaServerApplication {
/**
* 注册中心方法
+1 -5
View File
@@ -24,11 +24,7 @@
<!--注册中心-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-eureka</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
<artifactId>spring-cloud-starter-eureka-server</artifactId>
</dependency>
<!--web-->
<dependency>