Java 8 已停止支援,並將於 2026 年 1 月 31 日
淘汰。淘汰後,您將無法部署 Java 8 應用程式,即使貴機構先前使用機構政策重新啟用舊版執行階段的部署作業也一樣。現有的 Java 8 應用程式在
淘汰日期後,仍會繼續執行並接收流量。建議您
改用最新支援的 Java 版本。
Google App Engine Java 8 標準環境說明文件
App Engine 標準環境可讓您輕鬆建構及部署應用程式,即使是處在大量資料和高負載的情況下,應用程式仍會穩定可靠地執行。您的應用程式是在自有的安全、可靠環境中執行,不受伺服器的硬體、作業系統或實體位置影響。瞭解詳情
使用價值 $300 美元的免費抵免額,開始進行概念驗證
-
取得 Gemini 2.0 Flash Thinking 的存取權
-
每月免費使用 AI API 和 BigQuery 等熱門產品
-
不會自動收費,也不會要求您一定要購買特定方案
繼續探索超過 20 項一律免費的產品
使用超過 20 項實用的免費產品,包括 AI API、VM 和 data warehouse 等。
訓練
訓練與教學課程
App Engine:Qwik Start - Java
瞭解 Google Cloud 的價值,以及如何將雲端式解決方案納入業務策略中。
用途
用途
控管網站和應用程式的存取權
瞭解如何控管使用者對企業網路資源的存取權。
Enterprise
BeyondCorp
Authentication
App Engine
程式碼範例
程式碼範例
App Engine 範例 - Hello World
本範例說明如何使用 Java 在 App Engine 標準環境中建構 Hello World 應用程式。
程式碼範例
程式碼範例
App Engine 範例 - Cloud Datastore
這個範例示範如何在 App Engine 標準環境中,透過 Java 使用 Cloud Datastore API。
程式碼範例
程式碼範例
Google Cloud API 展示:Java 8 適用的 App Engine 標準環境中的 BigQuery 和 Cloud Monitoring
這個範例示範如何在 App Engine 標準環境中,透過 Java 使用 BigQuery 和 Cloud Monitoring。
除非另有註明,否則本頁面中的內容是採用創用 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\u003eApp Engine standard environment enables the creation and deployment of applications that are robust under heavy loads and with significant data.\u003c/p\u003e\n"],["\u003cp\u003eThe environment offers application security and reliability, independent of the underlying hardware, operating system, or physical server location.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation provides guides for various tasks, including scheduling tasks with Cron, setting up development, deploying apps, sending mail, and using tools like Apache Maven.\u003c/p\u003e\n"],["\u003cp\u003eReference materials include details on configuration files like \u003ccode\u003eweb.xml\u003c/code\u003e, \u003ccode\u003eappengine-web.xml\u003c/code\u003e, \u003ccode\u003ecron.xml\u003c/code\u003e, \u003ccode\u003equeue.xml\u003c/code\u003e, and \u003ccode\u003edispatch.yaml\u003c/code\u003e, as well as guidance on migrating from AppCfg to gcloud.\u003c/p\u003e\n"],["\u003cp\u003eResources are available for managing costs, understanding quotas and limits, troubleshooting, viewing release notes, and exploring different environments and serverless options, along with related training, use cases, and code samples.\u003c/p\u003e\n"]]],[],null,["# Google App Engine Java 8 Standard Environment documentation\n===========================================================\n\n[Read product documentation](/appengine/docs/legacy/standard/java/runtime)\nApp Engine standard environment makes it easy to build and deploy an application that\nruns reliably under heavy load and with large amounts of data.\nYour application runs within its own secure, reliable environment that is\nindependent of the hardware, operating system, or physical location of the\nserver.\n[Learn more](/appengine/docs/legacy/standard/java/an-overview-of-app-engine)\n[Get started for free](https://console.cloud.google.com/freetrial) \n\n#### Start your proof of concept with $300 in free credit\n\n- Get access to Gemini 2.0 Flash Thinking\n- Free monthly usage of popular products, including AI APIs and BigQuery\n- No automatic charges, no commitment \n[View free product offers](/free/docs/free-cloud-features#free-tier) \n\n#### Keep exploring with 20+ always-free products\n\n\nAccess 20+ free products for common use cases, including AI APIs, VMs, data warehouses,\nand more.\n\nDocumentation resources\n-----------------------\n\nFind quickstarts and guides, review key references, and get help with common issues. \nformat_list_numbered\n\n### Guides\n\n-\n\n [Scheduling Tasks With Cron for Java 8](/appengine/docs/legacy/standard/java/config/cron)\n\n-\n\n [Getting Started: Setting Up Your Development Environment](/appengine/docs/legacy/standard/java/building-app/environment-setup)\n\n-\n\n [Sending Mail with the Mail API](/appengine/docs/legacy/standard/java/mail/sending-mail-with-mail-api)\n\n-\n\n [Deploying a Java App](/appengine/docs/legacy/standard/java/tools/uploadinganapp)\n\n-\n\n [Using Apache Maven and the App Engine Plugin (Cloud SDK-based)](/appengine/docs/legacy/standard/java/using-maven)\n\n-\n\n [Creating, Retrieving, Updating, and Deleting Entities](/appengine/docs/legacy/standard/java/datastore/creating-entities)\n\n-\n\n [App Engine Maven Plugin (Cloud SDK-based) Goals and Parameters](/appengine/docs/legacy/standard/java/maven-reference)\n\nfind_in_page\n\n### Reference\n\n-\n\n [The Deployment Descriptor: web.xml](/appengine/docs/legacy/standard/java/config/webxml)\n\n-\n\n [appengine-web.xml Reference](/appengine/docs/legacy/standard/java/config/appref)\n\n-\n\n [Migrating from AppCfg to gcloud Command Line](/appengine/docs/legacy/standard/java/tools/migrating-from-appcfg-to-gcloud)\n\n-\n\n [Configuration Files](/appengine/docs/legacy/standard/java/configuration-files)\n\n-\n\n [Configuring Datastore Indexes with index.yaml](/appengine/docs/legacy/standard/java/configuring-datastore-indexes-with-index-yaml)\n\n-\n\n [cron.xml Reference for App Engine SDK-Based Tooling](/appengine/docs/legacy/standard/java/config/cronref)\n\n-\n\n [queue.xml Reference](/appengine/docs/legacy/standard/java/config/queueref)\n\n-\n\n [dispatch.yaml Configuration File](/appengine/docs/legacy/standard/java/reference/dispatch-yaml)\n\ninfo\n\n### Resources\n\n-\n\n [Java release notes](/appengine/docs/legacy/standard/java/release-notes)\n\n-\n\n [Pricing](/appengine/pricing)\n\n-\n\n [Quotas and limits](/appengine/docs/legacy/standard/java/quotas)\n\n-\n\n [Managing costs](/appengine/docs/legacy/standard/java/managing-costs)\n\n-\n\n [Troubleshooting](/appengine/docs/legacy/standard/java/troubleshooting)\n\n-\n\n [Choosing an environment](/appengine/docs/the-appengine-environments)\n\n-\n\n [Choosing a serverless option](/serverless)\n\nRelated resources\n-----------------\n\nTraining and tutorials \nUse cases \nCode samples \nExplore self-paced training, use cases, reference architectures, and code samples with examples of how to use and connect Google Cloud services. Training \nTraining and tutorials\n\n### App Engine: Qwik Start - Java\n\n\nLearn the value of Google Cloud and how to incorporate cloud-based solutions into your business strategies.\n\n\n[Learn more](https://www.cloudskillsboost.google/focuses/951?parent=catalog) \nUse case \nUse cases\n\n### Controlling Access to Websites and Apps\n\n\nLearn how to control user access to enterprise web resources.\n\nEnterprise BeyondCorp Authentication App Engine\n\n\u003cbr /\u003e\n\n[Learn more](/solutions/authenticating-web-users) \nCode sample \nCode Samples\n\n### App Engine sample - Hello World\n\n\nThis sample demonstrates how build a Hello World app on App Engine standard environment with Java.\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/appengine-java8/helloworld) \nCode sample \nCode Samples\n\n### App Engine sample - Cloud Datastore\n\n\nThis sample demonstrates how to use the Cloud Datastore API on App Engine standard environment with Java.\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/appengine-java8/guestbook-cloud-datastore) \nCode sample \nCode Samples\n\n### Google Cloud API Showcase: BigQuery \\& Cloud Monitoring in App Engine standard environment for Java 8\n\n\nThis sample demonstrates how to use BigQuery and Cloud Monitoring on App Engine standard environment with Java.\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/appengine-java8/bigquery)\n\nRelated videos\n--------------"]]