@ComponentScan uses string array, like this:
@ComponentScan({"com.my.package.first","com.my.package.second"})
When you provide multiple package names in only one string, Spring interprets this as one package name, and thus can’t find it.
Related Contents:
- What’s the difference between @Component, @Repository & @Service annotations in Spring?
- Difference between and
- Spring: @Component versus @Bean
- Where does the @Transactional annotation belong?
- JsonMappingException: No suitable constructor found for type [simple type, class ]: can not instantiate from JSON object
- @Resource vs @Autowired
- Only using @JsonIgnore during serialization, but not deserialization
- Does Spring @Transactional attribute work on a private method?
- intellij incorrectly saying no beans of type found for autowired repository
- @RequestBody and @ResponseBody annotations in Spring
- How to parameterize @Scheduled(fixedDelay) with Spring 3.0 expression language?
- Xml configuration versus Annotation based configuration [closed]
- Init method in Spring Controller (annotation version)
- @Transactional(propagation=Propagation.REQUIRED)
- @Autowired – No qualifying bean of type found for dependency
- Where should I put @Transactional annotation: at an interface definition or at an implementing class?
- How to inject a Map using the @Value Spring Annotation?
- EnableWebMvc annotation meaning
- Implement a simple factory pattern with Spring 3 annotations
- Difference between @size(max = value ) and @min(value) and @max(value)
- @Value annotation type casting to Integer from String
- Annotations from javax.validation.constraints not working
- Telling IntelliJ IDEA which methods not to identify as unused
- Spring MVC: difference between and tags? [duplicate]
- How to correctly specify a default value in the Spring @Value annotation?
- Spring annotation-based DI vs xml configuration?
- Spring @ContextConfiguration how to put the right location for the xml
- Java code won’t compile due to attribute must be a constant expression error
- Where I can find @Inject jar
- What’s the difference between interface and @interface in java?
- Which maven dependencies to include for spring 3.0?
- How to create optional parameters for own annotations?
- Get method arguments using Spring AOP?
- How do I obtain the Jackson ObjectMapper in use by Spring 4.1?
- Failed to start bean ‘documentationPluginsBootstrapper’ in spring data rest
- How @Target(ElementType.ANNOTATION_TYPE) works
- How to manually force a commit in a @Transactional method? [duplicate]
- How to create an instance of an annotation
- Filtering database rows with spring-data-jpa and spring-mvc
- Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1
- Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
- exception loading sessions from persistent storage
- Maven clean install: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources
- setting up a value for a variable name in thymeleaf
- Adding additional details to principal object stored in spring security context
- Communication between two microservices
- Why are annotations under Android such a performance issue (slow)?
- Difference between @Qualifier and @Resource
- Are Spring singleton beans thread-safe?
- What is the use case of @Import annotation?