Home Spring Framework

Spring Framework

Spring – @Import annotation

In this guide we will see how to use the Spring @Import annotation, importing multiple configuration classes, and we will see difference between @Import...

Spring @Primary Annotation

In this tutorial, we will discuss on Spring's @Primary annotation with examples, @Primary is available in Spring Framework since 3.0 version. 1. @Primary annotation in...

Spring – Injecting Collections

Spring Framework supports injecting Java Collection types. In this tutorial we will see how to inject Arrays, List, Set and Map with examples. 1. Inject...

Spring Boot – Defining Beans in XML

Sometimes it necessary to integrate XML configuration into Spring Boot application. For example, some of your beans already defined in existing XML. In this...

Tutorial on Spring @Autowired

@Autowired is one of the key annotation in annotation based Dependency Injection. Since version 2.5, Spring provides the @Autowired annotation to discover the beans...

Using @Order in Spring

In this guide we are going to see about how to use @Order annotation in Spring. @Order annotation can be used on components or...

Stay in Touch