Learning goals

Quickly learn how to use hot deployment plug-ins to run projects and improve development efficiency.

Quick access to

IDEA Quick Start Tutorial (2018 Edition)

Special Reading: SpringBoot Sermon Series

Specific steps

I. Enable automatic compilation of IDEA (static)

For details, go to File > Settings > Default Settings > Build > Compiler and select Build Project Automatically.

2. Enable automatic compilation of IDEA (dynamic)

To do this, press Ctrl + Shift + Alt + / and enter Registry, check auto compile and adjust delay parameters.

  • Compiler. Automake. Allow. The when. App. Running – > automatic compilation
  • The compile. Document. Save. The trigger. Delay – > automatic update files

PS: very few people mention the compile online. The document. Save. The trigger. The delay it is primarily for the update of static files such as JS, CSS, reducing latency, press F5 to refresh the page to see the effect directly!

3. Enable the hot deployment strategy of IDEA (very important)

To do this, go to the top menu -> Edit Configurations->SpringBoot Plug-in -> Target Project -> Check hot Updates.

image.png

4. Add hot deployment plug-ins to the project (optional)

Tips: If the old project is very bloated, so that the automatic hot restart every time slow and affect the development efficiency, I suggest directly remove the spring-boot-devTools dependency in POM, and then use Control+Shift+F9 to do manual boot-free quick update!!

To do this, add the hot deployment plug-in to the POM file