Quick Introduction on SpringLoaded
SpringLoaded, a framework published by Spring.io, is a JVM agent for reloading class file changes whilst a JVM is running. It transforms classes at loadtime to make them amenable to later reloading. Read further on this github page. Personally, I have found it very useful as I do not have to build and restart servers for every small changes. In many ways, the framework does what is done by popular JRebel.
Why use SpringLoaded?
- Does not require you to stop and start server after making changes into one or more classes.
- In that way, it acts as a productivity booster as one spends significant time in stopping and starting the server if there are minor changes in the Java classes.
Steps to Configure SpringLoaded
Step 1: Download the SpringLoaded library from https://github.com/spring-projects/spring-loaded. This is the link of current 1.2 version of SpringLoaded.
Step 2: Place following as JVM argument in “Run Configuration” as shown in the screenshot below.
-Djavaagent:D:\javalibs\springlibs\springloaded-1.2.0.RELEASE.jar
That is it. Let me know if it worked for you.
- Agentic Reasoning Design Patterns in AI: Examples - October 18, 2024
- LLMs for Adaptive Learning & Personalized Education - October 8, 2024
- Sparse Mixture of Experts (MoE) Models: Examples - October 6, 2024
Is it works for struts project also??