@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.
More Related Contents:
- What’s the difference between @Component, @Repository & @Service annotations in Spring?
- Difference between and
- Where does the @Transactional annotation belong?
- Does Spring @Transactional attribute work on a private method?
- Spring: @Component versus @Bean
- Only using @JsonIgnore during serialization, but not deserialization
- @RequestBody and @ResponseBody annotations in Spring
- Xml configuration versus Annotation based configuration [closed]
- @Resource vs @Autowired
- How to inject a Map using the @Value Spring Annotation?
- JsonMappingException: No suitable constructor found for type [simple type, class ]: can not instantiate from JSON object
- How to configure MappingJacksonHttpMessageConverter while using spring annotation-based configuration?
- @Transactional(propagation=Propagation.REQUIRED)
- Annotations from javax.validation.constraints not working
- How can I reload properties file in Spring 4 using annotations?
- How to parameterize @Scheduled(fixedDelay) with Spring 3.0 expression language?
- Spring: define @RequestMapping value in a properties file
- intellij incorrectly saying no beans of type found for autowired repository
- Spring @ContextConfiguration how to put the right location for the xml
- Where should I put @Transactional annotation: at an interface definition or at an implementing class?
- Spring annotation-based DI vs xml configuration?
- Spring MVC: difference between and tags? [duplicate]
- What are annotations and how do they actually work for frameworks like Spring?
- How to fix role in Spring Security?
- Spring Boot how to hide passwords in properties file
- Can I use @Requestparam annotation for a Post request?
- Converting File to MultiPartFile
- Abstract Method Error
- how to get param in method post spring mvc?
- Mapping JPA or Hibernate projection query to DTO (Data Transfer Object)