Skip to content

Commit

Permalink
Document how to hot reload in IntelliJ IDEA
Browse files Browse the repository at this point in the history
  • Loading branch information
miguno committed Sep 11, 2024
1 parent d91c94a commit 6ced5a5
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,25 @@ $ ./mvnw spring-boot:run
$ java -jar target/app.jar
```

# Appendix: Usage with just
# Appendix

## Hot reloading during development

In IntelliJ IDEA you can enable hot reloading for the running application with:

- `Settings` > `Build, Execution, Deployment` > `Compiler`:
[X] Build project automatically
- `Settings` > `Advanced Settings`:
[X] Allow auto-make to start even if developed application is currently running

With this configured, you don't need to restart the application manually when
you made code changes. Hot reload will work both when running the application
via IntelliJ IDEA from the IDE as well as when running the application in a
terminal with `./mvnw spring-boot:run`.

Note that it can take a few seconds for the refresh to happen.

## Usage with just

If you have [just](https://github.com/casey/just) installed, you can run the
commands above more conveniently as per this project's [justfile](justfile):
Expand Down

0 comments on commit 6ced5a5

Please sign in to comment.