Spring Cloud GCP 环境
GcpEnvironmentProvider
是由Spring Cloud GCP启动程序自动配置的功能接口,它返回GcpEnvironment
枚举。提供者可以通过编程帮助确定在哪个GCP环境(App Engine Flexible,App Engine Standard,Kubernetes Engine或Compute Engine)中部署应用程序。
public interface GcpEnvironmentProvider { GcpEnvironment getCurrentEnvironment(); }