Chapter 11. Using Quarkus development mode
Development mode enables hot deployment with background compilation, which means that when you modify your Java files or your resource files and then refresh your browser, the changes automatically take effect. This also works for resource files such as the configuration property file.
- You have a Quarkus Maven application.
To start Quarkus in development mode, enter the following command in the directory that contains your Quarkus application
- Make changes to your application and save the files.
Refresh the browser to trigger a scan of the workspace.
If any changes are detected, the Java files are recompiled and the application is redeployed. Your request is then serviced by the redeployed application. If there are any issues with compilation or deployment, an error page appears.
In development mode, the debugger is activated and listens on port
Optional: To wait for the debugger to attach before running the application, include
./mvnw quarkus:dev -Dsuspend
Optional: To prevent the debugger from running, include
./mvnw quarkus:dev -Ddebug=false