diff --git a/spring/Spring Cloud/Spring Cloud Netflix.md b/spring/Spring Cloud/Spring Cloud Netflix.md index d7b0a9e..c484576 100644 --- a/spring/Spring Cloud/Spring Cloud Netflix.md +++ b/spring/Spring Cloud/Spring Cloud Netflix.md @@ -76,4 +76,9 @@ public String serviceUrl() { ``` ## 注册服务速度 在注册为服务时,需要在一定期间内持续向eureka server发送心跳包,默认情况下该期间持续时间为30s。可以通过定义`eureka.instance.leaseRenewalIntervalInSeconds`值来缩短该期间的时间,将其值设置为小于30.但是,默认情况下,最好将其保留为默认值。 -## Eureka Server \ No newline at end of file +## Eureka Server +如果要在项目中包含eureka-server,可以在项目中包含如下启动器: +```xml +org.springframework.cloud +spring-cloud-starter-netflix-eureka-server +```