示例

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.