• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes
24 views

Problem:

I have following directory structure,

src>main>java>hello

 i have moved out my Application.java plus ScheduledTasks.java out of hello directory and started to get this annoying message:

** WARNING ** : Your ApplicationContext is unlikely to start due to a `@ComponentScan` of the default package.

I am thinking this is because i need to put those classes under hello directory , can anyone suggest whats the reason for this bug?

by (720 points)  
edited by

1 Answer

0 votes

Solution:

Application.java and ScheduledTasks.java files need to sit inside hello package.

So move files from default package to one with names.

by (4k points)  
...