Java 8 已达到支持终止期限,并将于 2026 年 1 月 31 日
弃用。弃用后,您将无法部署 Java 8 应用,即使您的组织之前曾使用组织政策重新启用旧版运行时的部署,也无法部署。现有的 Java 8 应用在
弃用日期之后将继续运行并接收流量。我们建议您
迁移到最新支持的 Java 版本。
在 App Engine 上构建应用
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
了解如何使用一些最常见的 App Engine 特性,例如投放简单的 HTML 和静态内容,以及如何在博客平台的场景下操控数据。
以下页面提供了有关掌握 App Engine 服务最常用的基本特性的说明。这些指南为您提供了实用的代码,可以直接使用,也可以通过扩展来用于其他场景。
- 设置开发环境
- 了解如何设置编译环境,以便开发应用并将其部署到 Google App Engine 标准环境。支持的 Java 开发和编译环境包括 IntelliJ IDEA、Eclipse、Apache Maven、Gradle。
- 传送静态文件
- 了解如何安全地从 Google App Engine 标准环境中传送静态内容,例如 HTML 文件、CSS 和图片。
- 处理表单数据
- 了解如何创建 HTML 表单,该表单使用 HTTP
POST
方法将用户提供的数据提交到 Java Servlet。 - 使用 Cloud SQL 存储数据
- 了解如何使用 Google Cloud SQL 存储、检索和删除用户提交的数据。
- 异步代码执行
- 了解如何使用任务队列安排异步代码执行,并使用 App Engine 的 Image API 操控 Cloud Storage 中存储的图片。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-09-04。
[[["易于理解","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-09-04。"],[[["\u003cp\u003eThis resource provides guides on using common App Engine features, including serving HTML and static content, and handling data in a blogging platform context.\u003c/p\u003e\n"],["\u003cp\u003eYou will learn to set up development environments like IntelliJ IDEA, Eclipse, Apache Maven, and Gradle for App Engine Standard.\u003c/p\u003e\n"],["\u003cp\u003eYou can learn how to securely serve static content, including HTML, CSS, and images, from Google App Engine.\u003c/p\u003e\n"],["\u003cp\u003eThis resource details how to create HTML forms that submit data to a Java Servlet using the HTTP \u003ccode\u003ePOST\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eIt covers storing, retrieving, and deleting user-submitted data using Google Cloud SQL, as well as scheduling asynchronous code execution and manipulating images with App Engine's Image API.\u003c/p\u003e\n"]]],[],null,["# Building an App on App Engine\n\nLearn how to use some of the most common App Engine features, such as serving\nsimple HTML and static content, and how to manipulate data in the scenario of a\nblogging platform.\n\nThe following pages provide instructions for learning about the basic\nfunctionality with the most commonly used App Engine services. These guides\nprovide you with functional code that you can use or extend for other\nscenarios.\n\n[Setting Up Your Development Environment](/appengine/docs/legacy/standard/java/building-app/environment-setup)\n: Learn how to set up your build environment for app development and deployment\n to Google App Engine Standard. The supported Java development and build\n environments are IntelliJ IDEA, Eclipse, Apache Maven, and Gradle.\n\n[Serving Static Content](/appengine/docs/legacy/standard/java/building-app/static-content)\n: Learn how to securely serve static content such as HTML files, CSS, and images\n from Google App Engine standard environment.\n\n[Handling Form Data](/appengine/docs/legacy/standard/java/building-app/handling-form-data)\n: Learn how to create a HTML form that uses the HTTP `POST` method to submit\n user provided data to a Java Servlet.\n\n[Storing Data with Cloud SQL](/appengine/docs/legacy/standard/java/building-app/cloud-sql)\n: Learn how to store, retrieve, and delete user submitted data storing using\n Google Cloud SQL.\n\n[Asynchronous Code Execution](/appengine/docs/legacy/standard/java/building-app/taskqueues)\n: Learn how to schedule asynchronous code execution using task queues and\n manipulate images stored in Cloud Storage using App Engine's Image API."]]