To see in development after the effects of code changes have to restart the application results in a lot of time is wasted
without restarting the application automatically deploy such a manner that the program is called hot deploy
If the template engine code changes, then Ctrl + F9 can recompile the current page to generate a new class file and take effect
, but if the back-end code is modified it will not take effect because the class files compiled and can not be applied to the project then you need to deploy the heat
Hot deployment plug-in has a good variety of the more common and have Spring Loaded JRebel and Devtools
introduction Devtools here
Devtools is an additional tool SpringBoot included offers some very useful features in development
First, the introduction of dependent Devtools:
If using the Initializer SpringBoot create a project, then the module can be introduced Devtools:
or manually introduced dependence:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
About <scope>runtime</scope>
: rely only involved in the project run cycle
with respect to <optional>true</optional>
: the dependency affect only the current project
if the project depends on the project this dependency will not be delivered
because devtools generally used only for the development environment must be set up in a production environment and therefore need to disable the property
Then turn on the automatic compilation IDEA (default is not turned on):
1, FIle - Settings - Build, Execution, Deployment of the compiler on the hook in the build project automatically option
2, then press the ctrl+shift+alt+/
select registry
check compiler.automake.allow.when.app.running option to
set the project start over if the words must restart the project
so that the compiler will automatically configure the
Then whenever modify the code finished press the shortcut keys Ctrl + F9 to automatically deploy the hot
course, you can manually select the navigation bar at Build in Build Project
press Ctrl + F9 will find after the console code reprint the hot deployment success