I am using STS (Spring Tool Suite) to build a spring boot application. Everytime I make some change on my code, I need to stop and run (rerun) the application before I refresh the application page on a browser. It would be very helpful if there is a way that keeps track of the changes I make and include it in the running package whenever I save my changes.
You can use spring-boot-devtools in your dependencies
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
Whenever files change in the classpath, applications using spring-boot-devtools will cause the application to restart. The benefit of this feature is the time required to verify the changes made is considerably reduced. More details about springboot devtools is available here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With