이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 14. 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.
Prerequisites
- You have a Quarkus Maven application.
Procedure
To start Quarkus in development mode, enter the following command in the directory that contains your Quarkus application
pom.xmlfile:./mvnw quarkus:dev
./mvnw quarkus:devCopy to Clipboard Copied! Toggle word wrap Toggle overflow - 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
5005.Optional: To wait for the debugger to attach before running the application, include
-Dsuspend:./mvnw quarkus:dev -Dsuspend
./mvnw quarkus:dev -DsuspendCopy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: To prevent the debugger from running, include
-Ddebug=false:./mvnw quarkus:dev -Ddebug=false
./mvnw quarkus:dev -Ddebug=falseCopy to Clipboard Copied! Toggle word wrap Toggle overflow