<p>Injecting Collections in Spring-We can inject collection values by constructor in spring framework. Spring Collections (List, Set, Map, and Properties) example. Spring examples to show you how to inject values into collections type (List, Set, Map, and Properties).</p>
<div dir="ltr" style="text-align: justify;">
<div dir="ltr" style="text-align: justify;">
<div dir="ltr" style="text-align: justify;">
<div dir="ltr" style="text-align: justify;">
<div style="color: #274e13;">
<div id="ads-id" align="center"></div>
<div class="separator" style="clear: both; text-align: center;"><img src="https://dineshonjava.com/wp-content/uploads/2012/06/injecting-collections-in-spring.jpg" border="0" /></div>
<p><i><b>@ImageSource-SlideShare.net</b></i></p>
<div style="color: #274e13;">You have seen how to configure <b>primitive data type</b> using <i><b>value </b></i>attribute and <b>object references</b> using <i><b>ref</b></i> attribute of the tag in your <b>Bean configuration file(spring.xml)</b>. Both the cases deal with passing <b>singular </b>value to a bean. Now we will discuss about passing<b> multiple value</b> of data like<b> List, Set, Collection, Map, Properties</b> etc. To handle the situation, Spring offers four types of <b>collection </b>configuration element.</div>
<div style="color: #274e13;"></div>
<div style="background-color: #f2f9fc; border: 1px solid #c9e6f2; border-radius: 3px; padding: 16px; line-height: 1.45;"><span style="color: red; font-size: x-large; text-align: center;"><b>Popular Tutorials</b></span></p>
<ul style="text-align: left;">
<li><b><a href="https://dineshonjava.com/spring-tutorial/"><em><strong>Spring Tutorial</strong> </em></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-web-mvc-framework-chapter-38/"><strong><em>Spring MVC Web Tutorial </em></strong></a></b></li>
<li><b><a href="https://dineshonjava.com/introduction-to-spring-boot-a-spring-boot-complete-guide/"><strong>Spring Boot Tutorial</strong> </a></b></li>
<li><b><a href="https://dineshonjava.com/spring-security-take-baby-step-to-secure/"><em>Spring Security Tutorial</em></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-aop-tutorial-with-example-aspect-advice-pointcut-joinpoint/"><em>Spring AOP Tutorial</em></a></b></li>
<li><b><a href="https://dineshonjava.com/using-spring-jdbc-framework-chapter-32/"><em>Spring JDBC Tutorial</em></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-hateoas-hypermedia-driven-restful-web-service/"><em><strong>Spring HATEOAS </strong></em></a></b></li>
<li><b><a href="https://dineshonjava.com/microservices-with-spring-boot/"><em><strong>Microservices with Spring Boot</strong></em></a></b></li>
<li><b><a href="https://dineshonjava.com/jax-rs-web-service-tutorial/"><strong><em>REST Webservice</em> </strong></a></b></li>
<li><b><a href="https://dineshonjava.com/core-java-baby-step-to-be-best-java-ian/"><em><strong>Core Java </strong></em></a></b></li>
<li><b><a href="https://dineshonjava.com/hibernate-3-on-baby-steps/"><em><strong>Hibernate Tutorial</strong></em></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-batch-process-with-example/"><strong><em>Spring Batch</em> </strong></a></b></li>
</ul>
</div>
<div></div>
<h2>Injecting Collections in the Spring Application</h2>
<div style="color: #274e13;">There are different tags are using by these different Collection elements as follows:</div>
<ul style="color: #274e13; text-align: left;">
<li><b>List</b> &#8212; using&#8211; <b><;list>; &#8211; <;/list>;</b></li>
<li><b>Set</b> &#8212; using&#8211; <b><;set>; &#8211; <;/set>;</b></li>
<li><b>Map</b> &#8212; using&#8211; <b><;map>; &#8211; <;/map>;</b></li>
<li><b>Properties </b>&#8211;using&#8211; <b><;props>; &#8211; <;/props>; </b></li>
</ul>
<h3 style="color: #274e13;"><b style="color: blue;">Using List</b></h3>
<div style="color: #274e13;">Lets see that code snip sett how to use the List in the spring bean configuration file.</div>
<div style="color: #274e13;">In this code snipset <b>list </b>contain all <b>values tags</b> only.</div>
<pre class="highlight" style="color: #274e13;"><;property name="listOfShape">; 
 <;list>; 
 <;value>;Triangle<;/value>; 
 <;value>;Circle<;/value>; 
 <;value>;Rectangle<;/value>; 
 <;value>;Square<;/value>; 
 <;/list>; 
<;/property>; 
</pre>
<div style="color: #274e13;">In this code snipset <b>list </b>contain <b>values and beans and inner bean</b> tags.</div>
<pre class="highlight" style="color: #274e13;"><;property name="listOfShape">; 
 <;list>; 
 <;value>;Triangle<;/value>; 
 <;value>;Circle<;/value>; 
 <;ref bean="rectangle">;<;/ref>; 
 <;bean class="com.dineshonjava.sdnext.Square">; 
 <;property name="width" value="20">;<;/property>; 
 <;/bean>; 
 <;/list>; 
<;/property>; 
</pre>
<h3 style="color: #274e13;"><b style="color: blue;">Using Set</b></h3>
<div style="color: #274e13;">Lets see that code snip sett how to use the Set in the spring bean configuration file.</div>
<div style="color: #274e13;">In this code snipset <b>set </b>contain all <b>values tags</b> only.</div>
<pre class="highlight" style="color: #274e13;"><;property name="setOfShape">; 
 <;set>; 
 <;value>;Triangle<;/value>; 
 <;value>;Circle<;/value>; 
 <;value>;Rectangle<;/value>; 
 <;value>;Square<;/value>; 
 <;/set>; 
<;/property>; 
</pre>
<div style="color: #274e13;">In this code snipset <b>set </b>contain <b>values and beans and inner bean</b> tags.</div>
<pre class="highlight" style="color: #274e13;"><;property name="setOfShape">; 
 <;set>; 
 <;value>;Triangle<;/value>; 
 <;value>;Circle<;/value>; 
 <;ref bean="rectangle">;<;/ref>; 
 <;bean class="com.dineshonjava.sdnext.Square">; 
 <;property name="width" value="20">;<;/property>; 
 <;/bean>; 
 <;/set>; 
<;/property>; 
</pre>
<h3 style="color: #274e13;"><b style="color: blue;">Using Map</b></h3>
<div style="color: #274e13;">Lets see that code snip sett how to use the Map in the spring bean configuration file.</div>
<div style="color: #274e13;">In this code snipset <b>map</b>contain all <b>values tags</b> only.</div>
<pre class="highlight" style="color: #274e13;"><;property name="mapOfShape">; 
 <;map>; 
 <;entry key="1" value="Triangle">; 
 <;entry key="2" value="Circle">; 
 <;entry key="3" value="Rectangle">; 
 <;entry key="4" value="Square">; 
 <;/entry>;<;/entry>;<;/entry>;<;/entry>; 
 <;/map>; 
<;/property>; 
</pre>
<div style="color: #274e13;">In this code snipset <b>map </b>contain <b>values and beans and inner bean</b> tags.</div>
<pre class="highlight" style="color: #274e13;"><;property name="mapOfShape">; 
 <;map>; 
 <;entry key="1" value="Triangle">;<;/entry>; 
 <;entry key="2" value="Circle">;<;/entry>; 
 <;entry key="3" value-ref="rectangle">;<;/entry>; 
 <;entry key="4">; 
 <;bean class="com.dineshonjava.sdnext.Square">; 
 <;property name="width" value="20">;<;/property>; 
 <;/bean>; 
 <;/entry>; 
 <;/map>; 
<;/property>; 
</pre>
<h3 style="color: #274e13;"><b style="color: blue;">Using Properties file</b></h3>
<div style="color: #274e13;">Lets see that code snip sett how to use the Properties file in the spring bean configuration file.</div>
<pre class="highlight" style="color: #274e13;"><;property name="proprtyOfShape">; 
 <;props>; 
 <;prop key="triangle">;Triangle<;/prop>; 
 <;prop key="circle">;Circle<;/prop>; 
 <;prop key="rectangle">;Rectangle<;/prop>; 
 <;prop key="sqare">;Square<;/prop>; 
 <;/props>; 
<;/property>; 
</pre>
</div>
<div style="color: #274e13;">Now See the full example with the Value injecting to Collection.</div>
<p><b>ShapeCollection.java</b></p>
<pre class="highlight">package com.dineshonjava.sdnext.injectingCollection; 
 
import java.util.List; 
import java.util.Map; 
import java.util.Properties; 
import java.util.Set; 
 
public class ShapeCollection { 
 private List<;string>; shapeOfList; 
 private Set<;string>; shapeOfSet; 
 private Map<;string string="">; shapeOfMap; 
 private Properties shapeOfProperties; 
 /** 
 * @param shapeOfList the shapeOfList to set 
 */ 
 public void setShapeOfList(List<;string>; shapeOfList) { 
 this.shapeOfList = shapeOfList; 
 } 
 /** 
 * @param shapeOfSet the shapeOfSet to set 
 */ 
 public void setShapeOfSet(Set<;string>; shapeOfSet) { 
 this.shapeOfSet = shapeOfSet; 
 } 
 /** 
 * @param shapeOfMap the shapeOfMap to set 
 */ 
 public void setShapeOfMap(Map<;string string="">; shapeOfMap) { 
 this.shapeOfMap = shapeOfMap; 
 } 
 /** 
 * @param shapeOfProperties the shapeOfProperties to set 
 */ 
 public void setShapeOfProperties(Properties shapeOfProperties) { 
 this.shapeOfProperties = shapeOfProperties; 
 } 
 
 public String toString() 
 { 
return "List Elements :" + shapeOfList+"nSet Elements :" + shapeOfSet+"n" + 
 "Map Elements :" + shapeOfMap+"nProperty Elements :" + shapeOfProperties; 
 
 } 
 
} 
</pre>
<div style="color: #274e13;">Following is the configuration file <b>spring.xml</b> which has configuration for all the type of collections:</div>
<p><b>spring.xml</b></p>
<pre class="highlight"><;beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/beans" xsi:schemalocation="http://www.springframework.org/schema/beans 
 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">; 
 
 
 <;bean class="com.dineshonjava.sdnext.injectingCollection.ShapeCollection" id="shapeCollection">; 
 
 
 <;property name="shapeOfList">; 
 <;list>; 
 <;value>;Triangle<;/value>; 
 <;value>;Circle<;/value>; 
 <;value>;Circle<;/value>; 
 <;value>;Rectangle<;/value>; 
 <;/list>; 
 <;/property>; 
 
 
 <;property name="shapeOfSet">; 
 <;set>; 
 <;value>;Triangle<;/value>; 
 <;value>;Circle<;/value>; 
 <;value>;Circle<;/value>; 
 <;value>;Rectangle<;/value>; 
 <;/set>; 
 <;/property>; 
 
 
 <;property name="shapeOfMap">; 
 <;map>; 
 <;entry key="1" value="Triangle">; 
 <;entry key="2" value="Circle">; 
 <;entry key="3" value="Circle">; 
 <;entry key="4" value="Rectangle">; 
 <;/entry>;<;/entry>;<;/entry>;<;/entry>;<;/map>; 
 <;/property>; 
 
 
 <;property name="shapeOfProperties">; 
 <;props>; 
 <;prop key="triangle">;Triangle<;/prop>; 
 <;prop key="circle1">;Circle<;/prop>; 
 <;prop key="circle2">;Circle<;/prop>; 
 <;prop key="rectangle">;Rectangle<;/prop>; 
 <;/props>; 
 <;/property>; 
 
 <;/bean>; 
 
<;/beans>; 
</pre>
<p><b>DrawingApp.java</b></p>
<pre class="highlight">package com.dineshonjava.sdnext.injectingCollection.tutorial; 
 
import org.springframework.context.ApplicationContext; 
import org.springframework.context.support.ClassPathXmlApplicationContext; 
 
import com.dineshonjava.sdnext.injectingCollection.ShapeCollection; 
 
 
/** 
 * @author Dinesh Rajput 
 * 
 */ 
public class DrawingApp 
{ 
 /** 
 * @param args 
 */ 
 public static void main(String[] args) 
 { 
 ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml"); 
 ShapeCollection shapeCollection = (ShapeCollection) context.getBean("shapeCollection"); 
 System.out.println(shapeCollection); 
 } 
} 
</pre>
<div style="color: #274e13;">Once you are done with creating source and bean configuration files, let us run the application. If everything is fine with your application, this will print the following message on console:</div>
<div></div>
<div style="background-color: #ff99cc; border-width: thin; border: solid;">
<div style="color: blue;"><b>Output:</b></div>
<div style="color: red;">Jun 24, 2012 3:50:42 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh</div>
<div style="color: red;">INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@ab50cd: startup date [Sun Jun 24 15:50:42 IST 2012]; root of context hierarchy</div>
<div style="color: red;">Jun 24, 2012 3:50:42 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions</div>
<div style="color: red;">INFO: Loading XML bean definitions from class path resource [spring.xml]</div>
<div style="color: red;">Jun 24, 2012 3:50:43 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons</div>
<div style="color: red;">INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1fc2fb: defining beans [shapeCollection]; root of factory hierarchy</div>
<p><b>List Elements :[Triangle, Circle, Circle, Rectangle]</b><br />
<b>Set Elements :[Triangle, Circle, Rectangle]</b><br />
<b>Map Elements :{1=Triangle, 2=Circle, 3=Circle, 4=Rectangle}</b><br />
<b>Property Elements :{rectangle=Rectangle, circle2=Circle, triangle=Triangle, circle1=Circle}</b></p>
</div>
</div>
<h2><b><br />
</b> <b>Injecting Bean References to the Collection</b></h2>
<p>In the following bean configuration file has understand how to inject bean references as one of the collection&#8217;s element.</p>
<pre class="highlight"><;beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/beans" xsi:schemalocation="http://www.springframework.org/schema/beans 
 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">; 
 
 <;bean class="com.dineshonjava.sdnext.injectCollection.Triangle" id="triangle">; 
 <;property name="height" value="30">;<;/property>; 
 <;property name="type" value="Eqiletral">;<;/property>; 
 <;/bean>; 
 
 <;bean class="com.dineshonjava.sdnext.injectingCollection.ShapeCollection" id="shapeCollection">; 
 
 
 <;property name="shapeOfList">; 
 <;list>; 
 <;value>;Circle<;/value>; 
 <;value>;Circle<;/value>; 
 <;ref bean="triangle">;<;/ref>; 
 <;bean class="com.dineshonjava.sdnext.injectCollection.Rectangle">; 
 <;property name="height" value="30">;<;/property>; 
 <;property name="width" value="50">;<;/property>; 
 <;/bean>; 
 <;/list>; 
 <;/property>; 
 
 
 <;property name="shapeOfSet">; 
 <;set>; 
 <;value>;Circle<;/value>; 
 <;value>;Circle<;/value>; 
 <;ref bean="triangle">;<;/ref>; 
 <;bean class="com.dineshonjava.sdnext.injectCollection.Rectangle">; 
 <;property name="height" value="30">;<;/property>; 
 <;property name="width" value="50">;<;/property>; 
 <;/bean>; 
 <;/set>; 
 <;/property>; 
 
 
 <;property name="shapeOfMap">; 
 <;map>; 
 <;entry key="2" value="Circle">;<;/entry>; 
 <;entry key="3" value="Circle">;<;/entry>; 
 <;entry key="1" ref-value="triangle">;<;/entry>; 
 <;entry key="4">; 
 <;bean class="com.dineshonjava.sdnext.injectCollection.Rectangle">; 
 <;property name="height" value="30">;<;/property>; 
 <;property name="width" value="50">;<;/property>; 
 <;/bean>; 
 <;/entry>; 
 <;/map>; 
 <;/property>; 
 
 
 <;property name="shapeOfProperties">; 
 <;props>; 
 <;prop key="triangle">;Triangle<;/prop>; 
 <;prop key="circle1">;Circle<;/prop>; 
 <;prop key="circle2">;Circle<;/prop>; 
 <;prop key="rectangle">;Rectangle<;/prop>; 
 <;/props>; 
 <;/property>; 
 
 <;/bean>; 
 
<;/beans>; 
</pre>
</div>
<div style="background-color: #f2f9fc; border-radius: 3px; border: 1px solid #c9e6f2; line-height: 1.45; padding: 16px;"><span style="color: red; font-size: x-large; text-align: center;"><b>Spring Related Topics you may like</b></span></p>
<ul>
<li><b><a href="https://dineshonjava.com/interview-questions-on-spring/"><span style="color: red;">Spring Interview Questions and Answers</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-aop-interview-questions-and-answers/"><span style="color: red;">Spring AOP Interview Questions and Answers</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-mvc-interview-questions-and-answers/"><span style="color: red;">Spring MVC Interview Questions</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-security-interview-questions-and-answers/"><span style="color: red;">Spring Security Interview Questions and Answers</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-rest-web-services-interview-questions-and-answers/"><span style="color: red;">Spring REST Interview Questions and Answers</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-boot-interview-questions-and-answers/"><span style="color: red;">Spring Boot Interview Questions and Answers</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-boot-microservices-interview-questions-answers/"><span style="color: red;">Spring Boot Microservices Interview Questions and Answers</span></a></b></li>
<li><b><a href="https://dineshonjava.com/dependency-injection-in-spring/"><span style="color: red;">Dependency Injection (DI) in Spring </span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-ioc-container/"><span style="color: red;">Spring IoC Container</span></a></b></li>
<li><b><a href="https://dineshonjava.com/what-is-bean-factory-in-spring/"><span style="color: red;">What is Bean Factory in Spring</span></a></b></li>
<li><b><a href="https://dineshonjava.com/application-context-in-spring/"><span style="color: red;">ApplicationContext in Spring</span></a></b></li>
<li><b><a href="https://dineshonjava.com/bean-autowiring-in-spring/"><span style="color: red;">Bean Autowiring in Spring</span></a></b></li>
<li><b><a href="https://dineshonjava.com/understanding-bean-scopes/"><span style="color: red;">Spring Bean Scopes</span></a></b></li>
<li><b><a href="https://dineshonjava.com/create-custom-bean-scope-in-spring-example/"><span style="color: red;">Create Custom Bean Scope in Spring Example</span></a></b></li>
<li><b><a href="https://dineshonjava.com/using-applicationcontextaware-in-spring/"><span style="color: red;">Using ApplicationContextAware in Spring</span></a></b></li>
<li><b><a href="https://dineshonjava.com/bean-lifecycle-and-callbacks/"><span style="color: red;">Spring Bean Life Cycle and Callbacks</span></a></b></li>
<li><b><a href="https://dineshonjava.com/writing-beanpostprocessor-in-spring/"><span style="color: red;">BeanPostProcessor in Spring</span></a></b></li>
<li><b><a href="https://dineshonjava.com/writing-beanfactorypostprocessor-in/"><span style="color: red;">BeanFactoryPostProcessor in Spring</span></a></b></li>
<li><b><a href="https://dineshonjava.com/annotations-in-spring-and-based/"><span style="color: red;"> Annotations in Spring and Based Configuration</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-jsr-250-annotations/"><span style="color: red;">Spring JSR-250 Annotations</span></a></b></li>
<li><b><a href="https://dineshonjava.com/jsr-330-annotations-in-spring/"><span style="color: red;">JSR 330 Annotations in Spring</span></a></b></li>
<li><b><a href="https://dineshonjava.com/stereotype-annotations-in-spring/"><span style="color: red;">Spring @Component, @Repository, @Service and @Controller Stereotype Annotations</span></a></b></li>
<li><b><a href="https://dineshonjava.com/method-injection-with-spring-using-lookup-method-property/"><span style="color: red;">Method injection with Spring using Lookup method property</span></a></b></li>
<li><b><a href="https://dineshonjava.com/introduction-to-aop-in-spring/"><span style="color: red;">Spring AOP-Introduction to Aspect Oriented Programming</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-aspect-annotation/"><span style="color: red;">@Aspect Annotation in Spring</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-aop-aspectj-before-annotation-advice-example/"><span style="color: red;"> Spring AOP AspectJ @Before Annotation Advice Example<br />
</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-aop-before-advice-example-using-xml-config/"><span style="color: red;"> Spring AOP Before Advice Example using XML Config</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-aop-aspectj-after-annotation-advice-example/"><span style="color: red;"> Spring AOP AspectJ @After Annotation Advice Example</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-aop-after-advice-example-using-xml-config/"><span style="color: red;"> Spring AOP After Advice Example using XML Config</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-aop-aspectj-after-returning-annotation-advice-example/"><span style="color: red;"> Spring AOP AspectJ @AfterReturning Annotation Advice Example</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-aop-after-returning-advice-example-using-xml-config/"><span style="color: red;"> Spring AOP After-Returning Advice Example using XML Config</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-aop-aspectj-after-throwing-annotation-advice-example/"><span style="color: red;"> Spring AOP AspectJ @AfterThrowing Annotation Advice Example</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-aop-after-throwing-advice-example-using-xml-config/"><span style="color: red;"> Spring AOP After Throwing Advice Example using XML Config</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-aop-aspectj-around-annotation-advice-example/"><span style="color: red;"> Spring AOP AspectJ @Around Annotation Advice Example</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-aop-around-advice-example-using-xml-config/"><span style="color: red;"> Spring AOP Around Advice Example using XML Config</span></a></b></li>
<li><b><a href="https://dineshonjava.com/understanding-aop-proxies-chapter-31/"><span style="color: red;">Spring AOP Proxies in Spring</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-aop-transaction-management-in/"><span style="color: red;"> Spring AOP Transaction Management in Hibernate</span></a></b></li>
<li><b><a href="https://dineshonjava.com/transaction-management-in-spring/"><span style="color: red;">Spring Transaction Management</span></a></b></li>
<li><b><a href="https://dineshonjava.com/declarative-transaction-management/"><span style="color: red;">Spring Declarative Transaction Management Example</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-aop-ordering-of-aspects-with-example/"><span style="color: red;">Spring AOP-Ordering of Aspects with Example</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-security-java-based-configuration-with-example/"><span style="color: red;">Spring Security Java Based Configuration with Example</span></a></b></li>
<li><b><a href="https://dineshonjava.com/spring-security-xml-namespace-configuration-example/"><span style="color: red;">Spring Security XML Namespace Configuration Example</span></a></b></li>
</ul>
<p> ;</p>
</div>
</div>
<p> ;</p>
</div>
<div class="wp-post-navigation"> 
									 <div class="wp-post-navigation-pre"> 
									 <a href="https://dineshonjava.com/injecting-inner-beans-in-spring-with/">Previous</a> 
									 </div> 
									 <div class="wp-post-navigation-next"> 
									 <a href="https://dineshonjava.com/bean-autowiring-in-spring/">Next</a> 
									 </div> 
									</div>
<script type="text/javascript">
jQuery(document).ready(function($) {
 $.post('https://dineshonjava.com/wp-admin/admin-ajax.php', {action: 'mts_view_count', id: '674'});
});
</script>
Strategy Design Patterns We can easily create a strategy design pattern using lambda. To implement…
Decorator Pattern A decorator pattern allows a user to add new functionality to an existing…
Delegating pattern In software engineering, the delegation pattern is an object-oriented design pattern that allows…
Technology has emerged a lot in the last decade, and now we have artificial intelligence;…
Managing a database is becoming increasingly complex now due to the vast amount of data…
Overview In this article, we will explore Spring Scheduler how we could use it by…