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


I have following directory structure,


 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 (1.6k points)  
edited by

1 Answer

0 votes


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

So move files from default package to one with names.

by (5.3k points)