Top "Component-scan" questions

Questions regarding using `@ComponentScan` to detect Spring managed components

ComponentScan and Autowired not working for dependent Spring project?

I have two projects A and B. Both are built with Maven, and project A has a Maven dependency to …

spring spring-boot autowired component-scan
Spring boot component scan include a single class

I am using spring component scan to auto detect beans as: @ComponentScan({"com.org.x, com.org.y"}) The issue …

java spring spring-boot spring-annotations component-scan
Add packages to component-scan

I have a project with a Spring container. Let's say this project is called my-common-library and uses the namespace my.…

java spring component-scan
Spring @ComponentScan doesn't work on @Repository

I have a repository in different package than the configuration class , so I annotated it as the following with @Repostiory: …

java spring-boot webapp2 component-scan