1、引入依赖
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> </dependency>
2、application.yml 添加配置
3、启动类增加注解(不加也能注册)
@EnableEurekaClient
1、引入依赖
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> </dependency>
2、application.yml 添加配置
3、启动类增加注解(不加也能注册)
@EnableEurekaClient