I believe that most students who use Intellij will encounter this problem, even if the project uses spring-boot-devtools, modifies classes or html, js, etc., the idea will not automatically restart, you have to manually make or restart,
It is the same as not using hot deployment. This situation is not your configuration problem, believe me, the hot deployment settings are very simple, the root cause is that Intellij IEDA is different from Eclipse, Eclipse is set to autocompile
After that, the modified class will automatically compile, while the IDEA will automatically compile if it is not RUN or DEBUG (provided you have Auto-Compile set up).
There is so much nonsense, how to solve it? Please be patient and look down.
First, you must check this box in the IDEA settings
Then Shift+Ctrl+Alt+/, select Registry
Once inside, find the option shown in the image below and tick it
Allow auto-make to start even if developed application is currently running. Note that automatically started make may eventually delete some classes that are required by the application.
The checkboxes above represent:Allow automatic generation even if the developed application is currently running. Note that auto-starting make may eventually remove some of the classes required by the application.
OK, restart the project, and then change the content in the class, and IDEA will automatically make.
|