title: Refreshing static content with Spring MVC and Boot
body: <p>I'm evaluating Spring MVC &amp; Boot and AngularJs for building web applications. I've run into the problem that when I make modifications to my static content (html, js, css), I have to restart the application every time. I hope there is a some way of solving that because restarting the whole application for static content changes is not efficient. Every other web app framework I've tried allows updating static content files on the fly(even just Spring MVC and plain old WAR application).</p>
  
  <p>I've setup my project from "Building a RESTful Web Service with Spring Boot Actuator" guide (<a href="http://spring.io/guides/gs/actuator-service/">http://spring.io/guides/gs/actuator-service/</a>). Basically it uses Spring Boot and MVC controllers to create a REST service. In addition, I've used "Consuming a RESTful Web Service with AngularJS" guide (<a href="http://spring.io/guides/gs/consuming-rest-angularjs/">http://spring.io/guides/gs/consuming-rest-angularjs/</a>) to build a frontend with AngularJS. It creates a web page that displays the response from the REST service. The only change I've made is that the requests are made to my application instead of "<a href="http://rest-service.guides.spring.io/greeting">http://rest-service.guides.spring.io/greeting</a>". My static content is stored in "src/main/resources/public" folder. This setup works correctly except it doesn't reload static content.</p>