Spring NoSuchBeanDefinitionException

2021 VietMX 0

1. Overview In this article, we are discussing the Spring org.springframework.beans.factory.NoSuchBeanDefinitionException – this is a common exception thrown by the BeanFactory when trying to resolve a bean that simply isn’t defined in […]

Unsatisfied Dependency in Spring

2021 VietMX 0

1. Overview In this quick tutorial, we’ll explain Spring’s UnsatisfiedDependencyException, what causes it, and how to avoid it. 2. Cause of UnsatisfiedDependencyException UnsatisfiedDependencyException gets thrown when, as the […]

@Lookup Annotation in Spring

2021 VietMX 0

1. Introduction In this quick tutorial, we’ll take a look at Spring’s method-level dependency injection support, via the @Lookup annotation. 2. Why @Lookup? A method annotated with @Lookup tells Spring […]

Spring – Injecting Collections

2021 VietMX 0

1. Introduction In this tutorial, we’re going to show how to inject Java collections using the Spring framework. Simply put, we’ll demonstrate examples with the List, Map, Set collection interfaces. 2. List With @Autowired […]

@Order in Spring

2021 VietMX 0

1. Overview In this tutorial, we’re going to learn about Spring’s @Order annotation. The @Order annotation defines the sorting order of an annotated component or bean. It has an optional […]

Spring @Primary Annotation

2021 VietMX 0

1. Overview In this quick tutorial, we’ll discuss Spring’s @Primary annotation which was introduced with version 3.0 of the framework. Simply put, we use @Primary to give higher preference to […]

Guide to Spring @Autowired

2021 VietMX 0

1. Overview Starting with Spring 2.5, the framework introduced annotations-driven Dependency Injection. The main annotation of this feature is @Autowired. It allows Spring to resolve and inject collaborating beans […]

Server-Sent Events in Spring

2021 VietMX 0

1. Overview In this tutorial, we’ll see how we can implement Server-Sent-Events-based APIs with Spring. Simply put, Server-Sent-Events, or SSE for short, is an HTTP […]

Spring Webflux with Kotlin

2021 VietMX 0

1. Overview In this tutorial, we demonstrate how to use the Spring WebFlux module using Kotlin programming language. We illustrate how to use the annotation-based […]

Spring Webflux and CORS

2021 VietMX 0

1. Overview In a previous post, we learned about Cross-Origin Resource Sharing (CORS) specification and how to use it within Spring. In this quick tutorial, we’ll set […]