I was reading around a lot about spring dev tools and I have tried them on and they seem pretty cool. However, I don\'t understand how they get enabled / disabled. For instan
It is excluded automatically for Spring Boot applications that use the JAR packaging. However, for WAR packaged Spring Boot projects, it is not. For Maven Spring Boot projects you must mark the dependency as provided
and also set excludeDevTools=true
in your pom.xml
.
Change devtools to "provided"
org.springframework.boot
spring-boot-devtools
provided
Exclude devtools from maven spring build plugin
org.springframework.boot
spring-boot-maven-plugin
true
More information here: https://github.com/spring-projects/spring-boot/issues/7556