JAVA

Bean Scope in Spring

Overview When defining a <bean> you have the option of declaring scope for that bean In this blog we will cover What are different types of Scope available in Spring.. Example for each scope type Types of Scope Scope Description singleton Scopes a single bean definition to a single object Read more…

By Ashish, ago
JAVA

Dependency Injection in Spring without XML

Overview In previous blog we saw Dependency Injection in Spring using Annotation. Here we will see how we can do same using Annotation but without defining Autoscan in xml. We will make use of @Configuration and @Bean to define configuration same as we did for xml in above case. Configuration Read more…

By Ashish, ago
JAVA

Dependency Injection in Spring using XML

Overview In my previous blog we saw an overview of Spring IoC and DI. Here we will see Dependency Injection (DI) in detail by answering following question: What is DI Ways of injecting Dependency using XML Dependency Injection Dependency Injection (DI) is a design pattern that removes the dependency from Read more…

By Ashish, ago
JAVA

Spring – An Overview

Overview Spring is a framework for dependency-injection which is a pattern that allows to build very decoupled systems. The Spring Framework is divided into modules. Applications can choose which modules they need. At the heart are the modules of the core container, including a configuration model and a dependency injection Read more…

By Ashish, ago