Recently in the spring to do a Web site, modified classes, HTML, JS and so on, refresh the page, does not take effect, do not have to make a manual or restart, greatly reducing the development efficiency.
What is a hot deployment? After the application starts, it will load the compiled class file into the virtual machine, under normal circumstances when the project modifies the source file, it needs to be completely recompiled and reloaded (need to restart the app). The hot deployment is to listen to changes in the class file, only the modified class reload, without the need to restart the application, making development easier.
so I found the article on the Internet, install the article settings, successful implementation hot deployment, you can see the effect immediately after modifying the Refresh page.
1, first, the idea set inside must tick
2, then shift+ctrl+alt+/, select Registry
3. After entering, find the option as shown, tick
4, restart the project so OK, and then change the contents of the class, idea will automatically go to make.
Spring Boot Web Project Hot deployment solution under idea (four steps)