Spring Cloud將服務(wù)發(fā)現(xiàn)、負(fù)載均衡和斷路器等通用模型封裝在一個(gè)公共抽象中,可以被所有的Spring Cloud客戶端使用,不依賴(lài)于具體的實(shí)現(xiàn)(例如服務(wù)發(fā)現(xiàn)就有Eureka和Consul等不同的實(shí)現(xiàn)),這些公共抽象位于Spring Cloud Commons項(xiàng)目中。 @EnableDiscoveryClient Commons提供@EnableDiscoveryClient注釋。這通過(guò)META-INF/spring.factories...
www.dbjr.com.cn/article/2454...htm 2025-5-25