Category "component-scan"

Excluding @bean from ComponentScan

I have lot of beans declared in a single class package com.example; @Configuration public class MainBeanClass{ @Override @Bean("cachingSession") @Lazy public C

My component scan on Spring 5.3.18 does not work

I have little problem with spring ComponentScan in my application. Here is my Test spring configuration: @Configuration @ComponentScan(basePackages = {"com.dhl.

Exclude @SpringBootApplication from component scanning

I have two classes marked as @SpringBootApplication under one directory: @SpringBootApplication public class FirstSpringBootApplication and @SpringBootApp