[[["容易理解","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-03 (世界標準時間)。"],[[["\u003cp\u003eSeveral Java frameworks, including Micronaut, Spring Cloud Run, and Quarkus, offer built-in support for creating Cloud Run functions.\u003c/p\u003e\n"],["\u003cp\u003eThese frameworks allow developers to build both HTTP and event-driven functions using their established programming models.\u003c/p\u003e\n"],["\u003cp\u003eThe frameworks leverage dependency injection to create a more modular codebase.\u003c/p\u003e\n"],["\u003cp\u003eSpring cloud functions, Micronaut, and Quarkus have detailed documentation to guide developers when building with their framework.\u003c/p\u003e\n"]]],[],null,["# Java Frameworks\n===============\n\nIn addition to [Functions Framework for Java](https://github.com/GoogleCloudPlatform/functions-framework-java), the [Micronaut framework](https://micronaut-projects.github.io/micronaut-gcp/2.0.x/guide/#simpleFunctions), [Spring\nCloud Run function project](https://spring.io/projects/spring-cloud-function), and [Quarkus](https://quarkus.io/guides/gcp-functions) now\nhave out-of-the-box support for Cloud Run functions. You can create both HTTP\nand event-driven functions using the frameworks' programming models, including\ncapabilities such as dependency injection.\n\nSpring Cloud Run functions\n--------------------------\n\nYou can write a function using [Spring Cloud Run functions](https://spring.io/projects/spring-cloud-function#overview), and deploy it to Java using the\nCloud Run functions adapter. For details, see the\n[Spring Cloud documentation](https://docs.spring.io/spring-cloud-function/docs/current/reference/html/spring-cloud-function.html). Also see the [Spring Cloud Run functions sample](https://github.com/spring-cloud/spring-cloud-function/tree/master/spring-cloud-function-samples/function-sample-gcp-http/).\n\nMicronaut\n---------\n\nYou can write a function using [Micronaut](https://micronaut-projects.github.io/micronaut-gcp/2.0.x/guide/#introduction), and deploy it to Java using Micronaut's\nCloud Run functions support. For details, see the\n[Micronaut documentation](https://micronaut-projects.github.io/micronaut-gcp/2.0.x/guide/#cloudFunction).\n\nQuarkus\n-------\n\nYou can write a function using\n[Quarkus](https://quarkus.io/), and deploy it to\nCloud Run functions using Quarkus Cloud Run functions support. For\ndetails, see the [Quarkus documentation](https://quarkus.io/guides/gcp-functions)."]]