Spring-boot- Devtools : Free Hot Deployment Tools

Free Hot Deployment Tools introduction

Free Hot Deployment Tools.Jrebel is very easy to use, but it has to be charged....spring- boot- devtools is to automatically change the application code to the latest App, that is, when we change some code or configuration files, the application can automatically restart , which is very useful when we are developing.

Jrebel works great, but there is a fee....
hot deployment
listening to the change of the Class file, a new ClaassLoader will be created to load the file. After a series of processes, the result will finally be presented in front of us.

Free Hot Deployment .spring-boot- devtools


It is a module for developers, the most important function of which is to automatically change the application code to the latest App, that is, when we change some code or configuration files, the application can be automatically restarted . This is when we develop , very useful.
reboot vs reload
restart technique provided by Spring Boot works by using two class loaders .
Classes that do not change (such as those from third-party jars) are loaded into base classloader .
we are developing will be loaded into restart classloader . _ When the application restarts, restart classloader will be discarded and a new class will be created. This approach means that application restarts are usually much faster than "cold starts" because the base classloader is already available and populated.
spring-boot- devtools use

Free Hot Deployment Toolsmaven dependencies



< groupId > org.springframework.boot
< artifactId > spring-boot- devtools
runtime
true


Free Hot Deployment Toolsyml configuration


#Spring
spring:
devtools :
restart:
# Default is true
enabled: true

Idea configuration
Code is compiled automatically
File --> Settings --> Compiler --> Build Project automatically

Related Articles

Explore More Special Offers

  1. Short Message Service(SMS) & Mail Service

    50,000 email package starts as low as USD 1.99, 120 short messages start at only USD 1.00