Membuat aplikasi untuk Lingkungan Standar App Engine di Cloud Code for IntelliJ
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
App Engine adalah platform serverless yang terkelola sepenuhnya untuk mengembangkan dan menghosting aplikasi web dalam skala besar.
Dokumen ini menjelaskan cara membuat aplikasi (atau mengimpor project yang ada) untuk lingkungan standar App Engine dengan Cloud Code.
Sebelum memulai
Instal dan siapkan IntelliJ Ultimate dengan versi JetBrains IDE
2022.3+ di PATH komputer Anda.
Instal plugin Cloud Code:
Buka IntelliJ IDEA (atau JetBrains IDE yang didukung).
Dari marketplace plugin Anda (File > Settings > Plugins atau
untuk Mac OS X, IntelliJ IDEA > Preferences > Plugins), telusuri
plugin 'Cloud Code' dan instal.
Anda mungkin diminta untuk memulai ulang IDE guna mengaktifkan plugin.
Buat aplikasi baru
Anda dapat membuat aplikasi baru menggunakan wizard project baru atau dengan mengimpor project yang ada di Cloud Source Repositories.
Menggunakan wizard project baru
Untuk membuat project baru, Anda dapat menggunakan wizard Project Baru IntelliJ untuk membuat
aplikasi template sebagai awal untuk aplikasi Anda sendiri.
Buat project baru sebagai berikut:
Buka File > New > Project untuk menampilkan dialog New Project.
Jika Anda menggunakan IntelliJ Ultimate 2022.3, pilih
Jakarta EE di panel kiri.
Untuk mengetahui detail selengkapnya tentang cara membuat aplikasi Java Enterprise baru, lihat tutorial JetBrains Your first Java EE application.
Jika Anda menggunakan IntelliJ Ultimate versi lama, klik
menu dropdown versi di kiri atas layar (di samping logo IntelliJ
IDEA) dan pilih versi Anda untuk memastikan petunjuk sesuai dengan
pengalaman Anda.
Masukkan Nama project.
Masukkan Lokasi project jika Anda tidak ingin menggunakan lokasi default.
Klik Berikutnya.
Pilih dependensi yang Anda perlukan untuk aplikasi, lalu klik
Create.
Melihat project yang ada
Anda dapat melihat project yang ada di Cloud Source Repositories:
Pilih VCS > Get from Version Control. Atau, buka dialog selamat datang, lalu klik Get from VSC.
Pilih Google Cloud dari drop-down Version Control, lalu klik Clone.
Pada dialog Clone from Google Cloud, pilih Cloud Project yang terkait dengan project Anda.
Pilih Cloud Repository Anda.
Pilih Parent Directory.
Masukkan Nama Direktori.
Klik Clone.
Menambahkan dukungan framework
Untuk menambahkan dukungan framework App Engine ke aplikasi Anda, ikuti langkah-langkah berikut:
Buka Tools > Google Cloud Code > App Engine > Add App
Engine support > Google App Engine standard.
Pilih modul yang ingin Anda tambahkan dukungan framework-nya.
Klik Oke.
Pilih library yang ingin Anda tambahkan ke project.
Untuk mengirimkan masukan atau melaporkan masalah di IDE IntelliJ, buka
Tools > Cloud Code > Help / About > Submit
feedback or report an issue untuk melaporkan masalah di GitHub.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-05 UTC."],[],[],null,["# Create an app for the App Engine Standard Environment in Cloud Code for IntelliJ\n\n| **Caution:** As of January 31, 2024, Java 8 support for App Engine has ended, and will be deprecated on January 31, 2026. As a result, Cloud Code disables App Engine by default. To enable App Engine in your IDE, navigate to **Settings** \\\u003e **Google\n| Cloud Code** \\\u003e **App Engine** . Due to the upcoming deprecation of App Engine, we don't recommend creating new App Engine projects. For more information about App Engine deprecations, see [Feature deprecations](/appengine/docs/standard/deprecations). For more information about the runtime support schedule for App Engine, see [Runtime support schedule](/appengine/docs/standard/lifecycle/support-schedule).\n| **Note:** The feature is only supported in the IntelliJ IDEA - Ultimate edition.\n| **Note:** For the App Engine standard environment, only Java applications using [Java 8 runtime](/appengine/docs/standard/java/runtime) are supported on Cloud Code.\n\n[App Engine](/appengine/docs/standard/java) is a fully\nmanaged, serverless platform for developing and hosting web applications at\nscale.\n\nThis document describes how to create an application (or import\nan existing project) for the App Engine standard\nenvironment with Cloud Code.\n\nBefore you begin\n----------------\n\n- Install and set up IntelliJ Ultimate with **JetBrains IDE version\n `2022.3+`** on the `PATH` of your machine.\n\n\u003c!-- --\u003e\n\n- Install the Cloud Code plugin:\n\n - Open IntelliJ IDEA (or any supported JetBrains IDE).\n - From your plugins marketplace (**File** \\\u003e **Settings** \\\u003e **Plugins** or for Mac OS X, **IntelliJ IDEA** \\\u003e **Preferences** \\\u003e **Plugins**), search for the 'Cloud Code' plugin and install it.\n\n You may be prompted to restart your IDE to activate the plugin.\n\nCreate a new application\n------------------------\n\nYou can create a new application by using the new project wizard or by importing\nan existing project in Cloud Source Repositories.\n\n### Use the new project wizard\n\nTo create a new project, you can use the IntelliJ New Project wizard to generate\na template application as the start for your own application.\n\nCreate a new project as follows:\n\n1. Navigate to **File** \\\u003e **New** \\\u003e **Project** to display the **New Project**\n dialog.\n\n2. If you're using IntelliJ Ultimate `2022.3`, choose\n **Jakarta EE** in the left panel.\n\n For more details on creating a new\n Java Enterprise application, see the JetBrains tutorial\n [Your first Java EE application](https://www.jetbrains.com/help/idea/creating-and-running-your-first-java-ee-application.html).\n If you're using an older version of IntelliJ Ultimate, click the\n version dropdown menu at the top-left of the screen (next to the IntelliJ\n IDEA logo) and select your version to ensure the instructions match your\n experience.\n3. Enter a project **Name**.\n\n4. Enter a project **Location** if you do not want to keep the default.\n\n5. Click **Next**.\n\n6. Select any of the dependencies you need for your application and click\n **Create**.\n\n### Check out an existing project\n\nYou can check out your existing project in Cloud Source Repositories:\n\n1. Choose **VCS \\\u003e Get from Version Control** . Alternatively, go to the welcome dialog and click **Get from VSC**.\n2. Select **Google Cloud** from the **Version Control** drop-down and click **Clone**.\n3. In the **Clone from Google Cloud** dialog, select the **Cloud Project** associated with your project.\n4. Select your **Cloud Repository**.\n5. Select the **Parent Directory**.\n6. Enter the **Directory Name**.\n7. Click **Clone**.\n\nAdd framework support\n---------------------\n\nTo add App Engine framework support to your application, follow these steps:\n| **Note:** If you previously configured framework support, you can skip these steps.\n\n1. Navigate to **Tools** \\\u003e **Google Cloud Code** \\\u003e **App Engine** \\\u003e **Add App\n Engine support** \\\u003e **Google App Engine standard**.\n\n2. Select the module you want to add framework support to.\n\n3. Click **OK**.\n\n4. Select the libraries you want to add to your project.\n\n5. Click **OK**.\n\nWhat's next\n-----------\n\nNow that you've created an application with App Engine support, you\ncan [run and debug it on your workstation](/code/docs/intellij/deploy-local).\n\nAdditionally, you can also deploy it to the\n[App Engine standard environment](/code/docs/intellij/deploy-std).\n\nGet support\n-----------\n\nTo submit feedback or report an issue in your IntelliJ IDE, go to **Tools** \\\u003e **Cloud Code** \\\u003e **Help / About** \\\u003e **Submit\nfeedback or report an issue** to report an issue on [GitHub](https://github.com/GoogleCloudPlatform/cloud-code-intellij/issues)."]]