SpringBoot_ hot deployment plug-in

In the actual development, we modify some code logic functions or pages need to restart the application, which virtually reduces the efficiency of development;

Hot deployment is when we modify the code, the service will automatically restart to load the newly modified content, thereby greatly enhancing the efficiency of our development;

Spring boot hot deployment is achieved by adding a plug-in;

Plug to: spring-boot-devtools, in Maven configured as follows:

<!-- springboot 开发自动热部署 -->
<dependency>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-devtools</artifactId>
   <optional>true</optional>
</dependency>

The heat will deploy plug-in actual use some minor problems, obviously has restarted, but not entered into force, in this case, manually restart the program;

After modifying the code in Eclipse will automatically restart the service saved

The idea there is no concept of saving, will be automatically saved. Does not automatically compile all will not automatically restart, it is necessary builder-builder model "xxxx" recompile the service will automatically restart

Guess you like

Origin www.cnblogs.com/Tunan-Ki/p/11762371.html