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 和圖片。
- 處理表單資料
- 瞭解如何建立使用 HTTP
POST
方法的 HTML 表單,藉此將使用者提供的資料提交至 Java Servlet。 - 使用 Cloud SQL 儲存資料
- 瞭解如何使用 Google Cloud SQL 儲存、擷取及刪除使用者提交的資料。
- 執行非同步程式碼
- 瞭解如何使用工作佇列排定非同步程式碼執行作業,以及如何使用 App Engine 的 Image API 控管儲存在 Cloud Storage 中的圖片。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間: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"]],["上次更新時間: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."]]