微服務2 Spring Cloud Eureka(一)

1.    搭建服務註冊中心 1)     創建一個Spring Boot項目,需要加入eureka-server。  pom文件中會有eureka-server依賴。 2)     在啓動類上加註解@EnableEurekaServer,開啓服務註冊中心。 3)     配置application.properties               默認情況下,服務註冊中心也會將自己作爲客戶端嘗試
相關文章
相關標籤/搜索