如需在 App Engine 上部署应用,您必须创建 Google Cloud 项目,该项目是一个用于存放 App Engine 应用资源及其他 Google Cloud 资源的顶层容器。
在本任务中,您将创建一个 Google Cloud 项目和一个 App Engine 应用来存储应用的设置、计算资源、凭据和元数据。
如果您已有启用了 App Engine 和 Cloud Build API 的 Google Cloud 项目,则继续编写 Web 服务。
创建 Google Cloud 项目
Sign in to your Google Cloud account. If you're new to
Google Cloud,
create an account to evaluate how our products perform in
real-world scenarios. New customers also get $300 in free credits to
run, test, and deploy workloads.
In the Google Cloud console, on the project selector page,
select or create a Google Cloud project.
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-03-10。"],[[["Creating a Google Cloud project is a prerequisite for deploying an app on App Engine, as it serves as a top-level container for resources."],["To deploy on App Engine, create an App Engine application within your Google Cloud project via the Google Cloud console."],["When creating an App Engine application, you must select a specific region for your app's computing resources, which cannot be changed later."],["Cloud Run is recommended for deploying new Java web services on Google Cloud, however, you can continue to write a basic web service with Java with your new Google Cloud Project."]]],[]]