Se stai creando una nuova funzione, consulta la guida rapida della console su Cloud Run. I contenuti di questa pagina si applicano solo alle funzioni legacy esistenti create con l'API Cloud Functions v1.
Puoi scrivere una funzione utilizzando Micronaut ed eseguirne il deployment in Java utilizzando il supporto delle funzioni Cloud Run di Micronaut. Per maggiori dettagli, consulta la documentazione di Micronaut.
Quarkus
Puoi scrivere una funzione utilizzando
Quarkus ed eseguirne il deployment nelle funzioni Cloud Run utilizzando il supporto delle funzioni Cloud Run di Quarkus. Per maggiori dettagli, consulta la documentazione di Quarkus.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-03 UTC."],[[["\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)."]]