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

How to enable Hot swapping for spring boot application ?

Every time I make the changes in the code I have to restart the server that's really frustrating. Is there a way I can enable Java Hot swapping for the Spring Boot Application ?

1 Answer

If you are saying about automatic server restart, when some files are changed, it is possible. Take a look at this article here: https://dzone.com/articles/continuous-auto-restart-with-spring-boot-devtools

There is exact description of what to put in which files: practical tutorial.

Also take a look at Spring documentation here:

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

There you can find theory of what and why: theoretical tutorial.