About Dev tool in Spring Boot

When running Spring Boot Applications that time If you make Change to your Source code. Then you have to manually restart your application

Now, When use DevTools in Spring Boot

when we use devtools in spring boot So no need to restart your server manually. that means dev tools restart your server automatically when you change in your source code. for devtools we add one dependency in our POM.XMl files

POM.XML

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <optional>true</optional>
    </dependency>
</dependencies>

if you want to disable your spring boot dev tools dependency properties .then write in your application.properties

# in application.properties
spring.devtools.restart.enabled=false

if you want to disable your spring boot dev tools dependency properties .Using Core Spring boot

public static void main(String[] args) {
    System.setProperty("spring.devtools.restart.enabled", "false");
    SpringApplication.run(MyApp.class, args);
}

For More Detail about DevTools