修改高可用注册中心配置
This commit is contained in:
@@ -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>
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
|
||||
* @since 1.0
|
||||
*/
|
||||
@SpringBootApplication
|
||||
@EnableEurekaServer //开启注册中心相关服务
|
||||
@EnableEurekaServer //开启注册中心相关服务,默认配置注册中心会注册自己
|
||||
public class EurekaServerApplication {
|
||||
/**
|
||||
* 注册中心方法
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user