

This article contains Spring Boot Devtools Configuration Intellij using maven with examples.
Table of Contents
Spring Boot Devtools provide following functionality
Automatic Restart
Applications that use
spring-boot-devtools
will automatically restart whenever files on the classpath change.Exclude Resources
It possible that some resource can be exclude when restart
spring.devtools.restart.exclude=static/**,public/**
Watch Addtional Path
You may want your application to be restarted or reloaded when you make changes to files that are not on the classpath. To do so, use the
spring.devtools.restart.additional-paths
property to configure additional paths to watch for changes.
Add maven dependency to pom.xml
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency>
For Intellij perform following steps
Step 1 : Enable Build Project automatically (File -> Setting)

Spring Boot Devtools Configuration Intellij
Step 2: Enable registry (Press Cltr + Alt + Shift + \)

Spring Boot Enable DevTool Intellij
Step 3: Enable compiler running

Spring Boot Enable DevTool Intellij
Now edit your Java Files or resource IDE will automatically restart spring boot application.
Refrences:
Spring Boot Devtools Configuration Doc