Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to reload Spring boot application without the need to rerun the application on STS?

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.

like image 564
Minilik Avatar asked Oct 26 '25 06:10

Minilik


1 Answers

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

like image 146
Amit K Bist Avatar answered Oct 28 '25 22:10

Amit K Bist



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!