If I have beans tagged with @Component annotation. But two beans in different folders. One in com.mycompany.core.bean1 and another in com.mycompany.DAO.bean2. When I'm trying to autowire bean1 in bean 2 like:
public class Bean2{
@Autowired
Bean1 bean1;
.....
}
Do I need to import package with bean1 in bean2 or would it scan for it by itself?
UPD: I know about question with the same name. But questions is totally different. So please unswer my question if you now it, and don't post links to another question.