Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java

Question about restarting the server

Should even after little change i have to stop and run server again? It cost some time...

1 Answer

Glad that you've asked.

There are tons of features in different Frameworks that allow you to restart Server automatically when changes happen.

Especially nice are Python Frameworks , and JavaScript ones. They all come with this auto-restart feature.

In Java situation is a bit harder, because we have to re-compile classes, but it is possible

There is not much that I know in Spark Framework.

But I do know one in Spring Framework.

https://dzone.com/articles/continuous-auto-restart-with-spring-boot-devtools

This is rather old post in Dzone. But it should work with newer versions.

And here is the link to documentation as well

http://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-devtools.html#using-boot-devtools-restart