Demo: Spring Boot, Spring Loaded and Spring Tool Suite in 4 minutes
Why Stack Overflow recommends it
Stack Overflow users link it as the reference walkthrough for getting Spring Loaded hot swapping working with Spring Boot and STS, usually when their own setup fails to reproduce it.
Recommended by 2 people across 2 different months, 2014 to 2016.
What it is
A short screen-recorded demo from the SpringDeveloper channel showing how to build a Hello World web app with Spring Boot, annotations and Spring Loaded inside Spring Tool Suite. It shows live class reloading without restarting the app, all in about four minutes.
What people said
Recommends user1312568 · 2014-05 · Stack Overflow · on “STS v3.5.0.RELEASE x64 won't hot swap VM classes”
I'm using windows 8.1 x64 Swedish. I tried to follow this [this video] guide on how to get STS to hot swap. I have Eclipse set to autobuild and I've checked that the class files are actually replaced in the target directory. I've added the javaagent parameter. I've also tested to start it from the commandline (a simple hello world) with my VM parameters and it starts although my username contains spaces. I've tried to move the springloaded.jar to a folder which doesn't contain spaces. Still no hot swap. To test it I rebuild my commandline hello world or in STS I alter a string and save the file. The class auto-builds but the web page still prints the old message. The STS installation directory is
Recommends Vaelyr · 2015-02 · Stack Overflow · on “How do I implement dynamic reloading in Spring (Netbeans)?”
Running it doesn't matter what IDE or build tool you're using. Just download the jar, add the java agent to your path when launching application and that's it: [this video]
Cites Bahadır Yağan · 2014-04 · Stack Overflow · on “Refreshing Thymeleaf pages with Spring loaded”
I followed the demo of spring loaded from here [this video] It works great for class changes but is there a way to get it working for the view layer, specifically Spring MVC with Thymeleaf templates.
Cites Meik Behnfeldt · 2015-09 · Stack Overflow · on “How to combine Spring Loaded with a Vaadin TouchKit application?”
I successfully got the following example (simple Spring web application) to run: [this video] Now I want to use Spring Loaded in a project which is based on Spring Boot and Vaadin TouchKit. When I make a change (new caption for a ComboBox for example), Spring Loaded seems to recognize it: 2015-09-03 10:23:08.823 INFO 1956 --- [Loader@799dbc3b] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest) 2015-09-03 10:23:08.823 INFO 1956 --- [Loader@799dbc3b] s.w.s.m.m.a.RequestMappingHa
Cites Ronner · 2016-01 · Stack Overflow · on “Spring loaded 1.2.5 + Spring Boot 1.3.2. can't seem to get it to work”
I came across a video on youtube ( [this video] ) where it demos Spring Loaded. I'm trying to duplicate the same behavior but am still unsuccessful so far. What I'm using: Spring Tool Suite 3.7.2 Spring Boot 1.3.2-RELEASE Spring loaded 1.2.5-RELEASE Maven version 3.1.0 JDK 1.8.0_71 I tried the same thing as the guy does in the video (except for the versions being more up to date of course) but it doesn't work. I also tried the "maven plugin" way as described in the spring docs here -> [LINK] But that also did not work. I tried changing the versions of spring loaded to 1.2.0 (docs use that version) but that didn't do anything either. I ran the app in STS itself, and also tried mvn spring-boot:run