Spring MVC Tutorial – Setter Dependency Injection

Spring Tutorial Index Page Previous: Hello World Next: Handling Form Submission In previous tutorial, we have seen how to create a simple Hello World Spring application using Maven under Eclipse. In the Hello World application, we used annotation. In this tutorial, I will show how to use xml configuration and setter dependency injection. Instead of … Read more

How to Design a Java Framework? – A Simple Example

You may be curious about how a framework works? A simple framework example will be made here to demonstrate the idea of frameworks. Goal of a Framework First of all, why do we need a framework other than just a normal library? The goal of framework is defining a process which let developers implement certain … Read more

Library vs. Framework?

What is the difference between a Java Library and a framework? The two concepts are important but sometimes confusing for Java developers. 1. Key Difference and Definition of Library and Framework The key difference between a library and a framework is “Inversion of Control”. When you call a method from a library, you are in … Read more