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 8c79424
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,28 @@ $ ./mvnw spring-boot:run
$ java -jar target/app.jar
```

# Appendix: Usage with just
# Appendix

## Hot reloading during development

This project uses `spring-boot-devtools` for automatic application restarts
after code changes.

In IntelliJ IDEA, you can enable hot reloading for the running application with
the following IDE settings. Note that it can take a few seconds for the refresh
to happen.

- `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`.

## 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 8c79424

Please sign in to comment.