Java 8 已停止支援,並將於 2026 年 1 月 31 日
淘汰。淘汰後,您將無法部署 Java 8 應用程式,即使貴機構先前使用機構政策重新啟用舊版執行階段的部署作業也一樣。現有的 Java 8 應用程式在
淘汰日期後,仍會繼續執行並接收流量。建議您
改用最新支援的 Java 版本。
API 與參考資料
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
我們仍會支援本節中的 API,但不再建議使用。
請改用 Cloud 用戶端程式庫。
使用這些已淘汰 API 的應用程式必須先遷移至 Cloud 用戶端程式庫和其他服務,才能升級至較新的 Google Cloud 執行階段或其他支援 Java 的環境。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],[],[[["\u003cp\u003eCloud Client Libraries offer idiomatic access to Google Cloud services like Cloud Storage and Firestore in Datastore mode.\u003c/p\u003e\n"],["\u003cp\u003eConfiguration files such as \u003ccode\u003eappengine-web.xml\u003c/code\u003e, \u003ccode\u003edispatch.yaml\u003c/code\u003e, \u003ccode\u003eindex.yaml\u003c/code\u003e, \u003ccode\u003equeue.yaml\u003c/code\u003e, and \u003ccode\u003eweb.xml\u003c/code\u003e are used to configure various aspects of App Engine deployments and applications.\u003c/p\u003e\n"],["\u003cp\u003eApp Engine supports specific HTTP headers and defines request and response limits, detailed in the Request Headers and Responses section.\u003c/p\u003e\n"],["\u003cp\u003eThe App Engine Admin API provides REST and RPC interfaces for managing App Engine applications, and can be used by any programming language.\u003c/p\u003e\n"],["\u003cp\u003eSuperseded App Engine APIs, like those in the Java 8 runtime, are still supported but migration to Cloud Client Libraries is recommended for newer environments.\u003c/p\u003e\n"]]],[],null,["# APIs and Reference\n\nCloud Client Libraries for Java\n-------------------------------\n\n- [### APIs and Java libraries\n Use the Cloud client libraries for idiomatic access to\n Google Cloud services such as Cloud Storage and\nFirestore in Datastore mode (Datastore).](/java/docs/reference) \n\nConfiguration Files\n-------------------\n\n- [### appengine-web.xml\n Details about the configuration file that is used to\n configure App Engine deployed versions.](/appengine/docs/legacy/standard/java/config/appref)\n- [### dispatch.yaml\n Details about the configuration file that is used to\n route incoming requests to a specific service based on the path or hostname\n in the URL.](/appengine/docs/legacy/standard/java/reference/dispatch-yaml)\n- [### index.yaml\n Details about the configuration file used to define the\n Datastore indexes of the data in your app.](/appengine/docs/legacy/standard/java/configuring-datastore-indexes-with-index-yaml)\n- [### queue.yaml\n Details about the configuration file used to define the\n App Engine task queues in your app.](/appengine/docs/legacy/standard/java/config/queueref-yaml)\n- [### web.xml\n Details about the deployment descriptor that Java web\napplications use map URLs map to servlets.](/appengine/docs/legacy/standard/java/config/webxml) \n\nRequest Headers and Responses\n-----------------------------\n\n- [### Request Headers and Responses\n Details about what HTTP headers are supported as well as\nthe request and response limits in App Engine.](/appengine/docs/legacy/standard/java/reference/request-response-headers) \n\nAdmin API\n---------\n\n- [### App Engine Admin API\n Use the REST and RPC APIs with any programming language to\nmanage your App Engine applications.](/appengine/docs/admin-api/apis) \n\nApp Engine Tools Reference\n--------------------------\n\n- [### App Engine Tools API\n IDEs and other development utilities can use these APIs\nto perform testing and deployment of App Engine applications.](/appengine/docs/legacy/standard/java/tools/javadoc) \n\nSuperseded APIs\n---------------\n\nThe APIs in this section are still supported, but are no longer recommended.\nInstead, use the Cloud client libraries.\n\nApps that use these superseded APIs will need to migrate to the Cloud client\nlibraries and other services before upgrading to newer Google Cloud runtimes\nor other environments that support Java.\n\n- [### App Engine Javadoc\n App Engine APIs that are built into the Java 8 runtime.](/appengine/docs/legacy/standard/java/javadoc)"]]