This is the first Quarkus app:
You can download the code from here:
https://github.com/josesaid/code-with-quarkus
Getting started
Open your IDE and code this snippet
package org.acme;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
@Path("/first_app")
public class GreetingResource {
@GET
@Produces(MediaType.TEXT_PLAIN)
@Path("/hello")
public String hello() {
return "Hello from RESTEasy Reactive by Said Olano";
}
}
Then run this maven command:
Here is the command:
./mvnw quarkus:dev
This is the result of the execution:
Top comments (0)