Showing posts from April, 2022

How to resolve 'org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ...' - using stereotype Annotations and using @Configuration, @Bean Annotation

"At the end of the day, it doesn't really matter whether you use XML, annotation or Java configuration. It's important that beans are known to application context." -  Tomasz Nurkiewicz Hello everyone, in this article, we will learn how to resolve org.springframework.beans.factory. NoSuchBeanDefinitionException : No qualifying bean of type '' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: Using: 1. Stereotype Annotations. 2. @Configuration, @Bean Annotation. Before going to the example just a quick overview of NoSuchBeanDefinitionException ,  @Configuration annotation, @Bean annotation, and  @Component annotation( Stereotype annotation ). NoSuchBeanDefinitionException: The 'org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type '' available: expected at least 1 bean which qualifies as

How to Create a REST API With Helidon SE and Java?

Hello everyone, Today, we will show you how to create a simple REST API with Helidon SE 2.5.0 and Java 17 . Quick Overview: Helidon SE is designed to be a microframework that fortifies the reactive programming model. Helidon SE features three core APIs to engender a microservice -- a web server, configuration, and security -- for building microservices-predicated applications.  Helidon's web server is an asynchronous and reactive API that runs on top of Netty. The WebServer interface includes support for configuration, routing, error handling, and building metrics and health endpoints. The Config loads and processes configuration properties( or application.yaml) in key/value format.  The Security class provides support for authentication, sanction, and audit. Let's begin, Final Project Directory: Maven [pom.xml]: <?xml version = "1.0" encoding = "UTF-8" ?> <project xmlns = "" x

Quartz with Spring Boot, Quartz JobListener Example - How to keep track the status of the running job?

Hello everyone, today we will show you how to configure Quartz with Spring Boot and how to keep track the status of the running job. Tech stack Spring Boot 2.6.7 Java 17 Quartz Scheduler Quartz JobListener RAMJobStore for persisting quartz job. Maven Quartz is a richly featured, open-source job scheduling library that can be integrated within virtually any Java application - from the smallest stand-alone application to the largest e-commerce system.  Listeners are objects that you create to perform actions based on events occurring within the scheduler. As you can probably guess, TriggerListeners receive events related to triggers, and JobListeners receive events related to jobs. RAMJobStore is the simplest JobStore to use. It keeps all of its data in RAM. Final Project Directory: Maven[pom.xml] <?xml version = "1.0" encoding = "UTF-8" ?> <project xmlns = "" xmlns:xsi = "