Categories: Java

How to Configure SpringLoaded with Eclipse Dynamic Web Project

The article presents simple steps to use SpringLoaded framework to have your classes loaded onto the tomcat server without you having required to restart the server, while you are working with Eclipse Dynamic Web Project. The instructions below applies when you have installed Tomcat server and added the same to the eclipse.
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?
  1. Does not require you to stop and start server after making changes into one or more classes.
  2. 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

SpringLoaded configured to run with the tomcat server

That is it. Let me know if it worked for you.

Ajitesh Kumar

I have been recently working in the area of Data analytics including Data Science and Machine Learning / Deep Learning. I am also passionate about different technologies including programming languages such as Java/JEE, Javascript, Python, R, Julia, etc, and technologies such as Blockchain, mobile computing, cloud-native technologies, application security, cloud computing platforms, big data, etc. I would love to connect with you on Linkedin. Check out my latest book titled as First Principles Thinking: Building winning products using first principles thinking.

View Comments

Recent Posts

Agentic Reasoning Design Patterns in AI: Examples

In recent years, artificial intelligence (AI) has evolved to include more sophisticated and capable agents,…

2 months ago

LLMs for Adaptive Learning & Personalized Education

Adaptive learning helps in tailoring learning experiences to fit the unique needs of each student.…

2 months ago

Sparse Mixture of Experts (MoE) Models: Examples

With the increasing demand for more powerful machine learning (ML) systems that can handle diverse…

3 months ago

Anxiety Disorder Detection & Machine Learning Techniques

Anxiety is a common mental health condition that affects millions of people around the world.…

3 months ago

Confounder Features & Machine Learning Models: Examples

In machine learning, confounder features or variables can significantly affect the accuracy and validity of…

3 months ago

Credit Card Fraud Detection & Machine Learning

Last updated: 26 Sept, 2024 Credit card fraud detection is a major concern for credit…

3 months ago