服务注册实现
在 Kubernetes 中,服务注册由平台控制,应用程序本身不控制注册,就像它在其他平台中可能做的那样。 因此,使用 spring.cloud.service-registry.auto-registration.enabled
或设置 @EnableDiscoveryClient(autoRegister=false)
在 Spring Cloud Kubernetes 中不起作用。
在 Kubernetes 中,服务注册由平台控制,应用程序本身不控制注册,就像它在其他平台中可能做的那样。 因此,使用 spring.cloud.service-registry.auto-registration.enabled
或设置 @EnableDiscoveryClient(autoRegister=false)
在 Spring Cloud Kubernetes 中不起作用。