Springboot enables the hot deployment strategy of IDEA.
This article focuses on "springboot's hot deployment strategy for enabling IDEA". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "springboot's hot deployment strategy for turning on IDEA".
1. Enable automatic compilation of IDEA (static)
Specific steps: open the top toolbar File-> Settings-> Default Settings-> Build-> Compiler and check Build project automatically.
Turn on the automatic compilation of IDEA (dynamic)
Specific steps: press and hold Ctrl + Shift + Alt + / and then enter Registry, check automatic compilation and adjust delay parameters.
Compiler.automake.allow.when.app.running-> automatically compile compile.document.save.trigger.delay-> automatically update files PS: very few people mention compile.document.save.trigger.delay on the Internet. It is mainly for static files such as JS CSS updates. After reducing the delay time, press F5 to refresh the page directly to see the effect!
Third, turn on the hot deployment strategy of IDEA (very important)
Specific steps: top menu-> Edit Configurations- > SpringBoot plug-in-> Target Project-> check Hot Update.
Add a hot deployment plug-in to the project (optional) warm tip: if the old project is so bloated that every automatic hot restart is slow and affects development efficiency, the author suggests removing spring-boot-devtools dependencies directly in POM, and then use Control+Shift+F9 to manually start-free quick updates!
Specific steps: add a hot deployment plug-in to the POM file
Org.springframework.boot spring-boot-devtools runtime IV. Turn off browser caching (important)
Open Google browser, open the Network options bar in F12, and check [✅] Disable cache.
At this point, I believe you have a deeper understanding of "springboot's hot deployment strategy for enabling IDEA". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!