示例

Spring Cloud Kubernetes 旨在透過遵循 Spring Cloud 介面,使您的應用程式透明地使用 Kubernetes 原生服務。

在您的應用程式中,您需要將 spring-cloud-kubernetes-discovery 依賴項新增到您的類路徑中,並移除任何包含 DiscoveryClient 實現(即 Eureka discovery client)的其他依賴項。同樣,對於 PropertySourceLocator,您需要將 spring-cloud-kubernetes-config 新增到類路徑中,並移除任何包含 PropertySourceLocator 實現(即配置伺服器客戶端)的其他依賴項。

以下專案重點介紹了這些依賴項的用法,並演示瞭如何從任何 Spring Boot 應用程式中使用這些庫

© . This site is unofficial and not affiliated with VMware.