IntelliJ IDEA 2020.3 Help


Quarkus is a Kubernetes-native Java framework mainly aimed at building microservices. IntelliJ IDEA provides the following:

  • Coding assistance specific to Quarkus

  • Integration with the Bean Validation, CDI, and Endpoints tool windows

  • A dedicated project creation wizard based on

  • A dedicated run configuration for Quarkus applications.

Create a new Quarkus project

  1. From the main menu, select File | New | Project.

  2. In the New Project wizard, select Quarkus and choose the Default starter service

    New Quarkus project wizard

    Click Next.

  3. Configure the necessary Quarkus project settings and click Next.

  4. Select the necessary extensions for your application and click Next.

  5. If necessary, change the project name, location, and other settings. Click Finish.

The generated project contains a REST endpoint named ExampleResource with the following code:

package com.example; import; import; import; import; @Path("/hello") public class ExampleResource { @GET @Produces(MediaType.TEXT_PLAIN) public String hello() { return "Hello RESTEasy"; } }

You can open the Endpoints tool window (View | Tool Windows | Endpoints) and see this endpoint:

ExampleResource endpoint in the Endpoints tool window

Run the Quarkus application

IntelliJ IDEA creates a Quarkus run configuration that executes the necessary Maven goal or Gradle task.

  • Select the Quarkus run configuration in the main toolbar and click the Run button or press Shift+F10 .

    Alternatively, you can press Alt+Shift+F10 and select the necessary run configuration.

    If successful, you should see the output log in the Run tool window.

    Quarkus application running in the Run tool window

By default, the application starts on http://localhost:8080. Open this address in a web browser to see the Quarkus landing page:

Quarkus application start page

If you open the http://localhost:8080/hello endpoint, you will see the string Hello RESTEasy.

The default configuration runs your Quarkus application in development mode, which enables background compilation. For example, you can change the string returned by the hello() method in the ExampleResource class to Hello from a modified Quarkus endpoint and you will see this new string after you refresh http://localhost:8080/hello without restarting your application.

Last modified: 02 December 2020