In this section, we will use the live reload feature of Quarkus. For this purpose, we will import the project into our IDE so that we can apply some changes.
Navigate to File | Open and point to the folder where you created the Maven project. It will be automatically imported into your IDE. Here is the Files tab view of your Java classes:
Now, let's look at how live reload works with Quarkus. For this, let's apply a simple change to our code. Here, we have modified the return value for the hello method, as follows:
public class SimpleRest {
@GET
@Produces(MediaType.TEXT_PLAIN)
public String hello() {
return "hello changed!";
}
}
Hopefully, you haven't stopped your server. Now, try to call the service once more:
$ curl http://localhost:8080/helloworld
hello changed!
As you can see, when...