Spring Boot Developer Tools with Docker

With devtools, the server gets automatically restarted, very efficiently in much less time when a change is made in the code.

In the logs of the application, you can see that it is restarted after it detects change.
As seen in the logs, the application is restarted upon code changes
In the application logs, can see the restartedMain thread
The build directory structure containing folders that are on the classpath.
build directory structure
./gradlew -t compileKotlin
./gradlew -t compileKotlin &
pkill -P $$
./gradlew -t classes &
spring.devtools.restart.additional-paths=dev-config
spring.devtools.restart.poll-interval=4sspring.devtools.restart.quiet-period=2s
spring.devtools.restart.enabled=false
spring.devtools.livereload.enabled=false

Developing with Spring Boot

You are free to use any of the standard Spring Framework techniques to define your beans and their injected…

docs.spring.io

Command-Line Interface

The command-line interface is one of the primary methods of interacting with Gradle. The following serves as a…

docs.gradle.org

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐