Spring Boot DevTools is a development-only tool and should never run in production, since its convenience features carry real performance and security tradeoffs that are unacceptable in a live environment.
A team that forgot to verify their build excluded DevTools discovered slower response times and easier introspection into the running app after a production deploy, tracing it back to a dependency scope misconfiguration.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>A concise interview answer is
DevTools is strictly a development convenience -- it disables caching for live reload and can expose extra internal detail, both of which are risky in production. Spring Boot excludes it from the repackaged JAR by default, but I still mark it optional/provided and verify the production artifact doesn't include it.
Last updated: 16 July 2026
Previous question: You have a complex query that runs slowly in your Spring Boot application. How would you optimize it?