|
请使用 Spring Cloud Kubernetes 5.0.1(最新稳定版本)! |
服务注册表实现
在 Kubernetes 中,服务注册由平台控制,应用程序本身无法像其他平台那样控制注册。因此,在 Spring Cloud Kubernetes 中,使用 spring.cloud.service-registry.auto-registration.enabled 或设置 @EnableDiscoveryClient(autoRegister=false) 均不会产生任何效果。