Intellij IDEA - How to enable LiveReload

preview_player
Показать описание
1. Generate a Spring Boot Project with DevTools:

- Visit Spring Initializr.
- Choose your preferred build automation tool (e.g., Maven).
- Click the "Add Dependencies" button and search for Spring Boot DevTools. Add this dependency.
- Click on the "Generate" button to download your project.

2. Add the DevTools Dependency Manually:

- If you didn't add Spring Boot DevTools via Spring Initializr, you can add it manually.
- Add the dependency inside the `dependencies` tag

3. Enable Auto-Make:

- In IntelliJ IDEA, go to Intellij IDEA, Settings (on macOS).
- Navigate to Advanced Settings.
- Check the option "Allow auto-make to start even if developed application is currently running".

4. Enable Build Project Automatically:

- In the Settings/Preferences dialog, go to Build, Execution, Deployment, Compiler.
- Check the option "Build project automatically".
- Click Apply and then OK.

5. Enable Registry Settings for Automatic Make:

- Press Ctrl+Shift+A (or Cmd+Shift+A on macOS) to open the "Actions" dialog.
- Type Registry... and select it.

6. Run Your Spring Boot Application
Рекомендации по теме
join shbcf.ru