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