Java 8 已达到支持终止期限,并将于 2026 年 1 月 31 日
弃用。弃用后,您将无法部署 Java 8 应用,即使您的组织之前曾使用组织政策重新启用旧版运行时的部署,也无法部署。现有的 Java 8 应用在
弃用日期之后将继续运行并接收流量。我们建议您
迁移到最新支持的 Java 版本。
API 与参考
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
此部分中的 API 仍然受支持,但不再推荐使用。
而应使用 Cloud 客户端库。
在升级到较新的 Google Cloud 运行时或其他支持 Java 的环境之前,使用这些已被取代的 API 的应用需要迁移到 Cloud 客户端库和其他服务。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。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)"]]