Spring Framework

Dependency injection is a design pattern in which a component’s dependencies are supplied externally rather than being hardcoded within the component itself. In Spring, developers mainly use 3 different types of dependency injection: constructor-based, setter-based, and field-based. In this tutorial, we will see how to use Setter-based Dependency Injection to inject a UsersRepository into a…

Read More Setter-based Dependency Injection in Spring

Spring is a popular open-source Java-based framework for developing enterprise applications. It was first developed by Rod Johnson in 2003 and has since become one of the most widely used Java frameworks, with millions of downloads and numerous high-profile projects using it. Key Features Here are some key features of Spring Framework that make it…

Read More What is Spring Framework

Multiple data source implementations are very crucial in instances where we want to secure the application from vulnerabilities such as a database failure. This will ensure that the application can still function even if part of the database went down. This tutorial will use student and course entities to demonstrate how multiple data sources can…

Read More Multiple Datasources in Spring Application