This article is a mirror article of machine translation, please click here to jump to the original article.

View: 15318|Reply: 0

[Source] Intellij IDEA SpringBoot Hot Boot is an ineffective solution using Spring-boot-devTools

[Copy link]
Posted on 9/9/2018 4:46:27 PM | | | |
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.





Previous:MyBatis passing in multiple parameters
Next:Usage and Role of @Param in mybatis
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com