How to Solve Error: Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.

1. Why

The application class is directly placed in the default package, such as Src/main/Java directory.

2. Solutions

It should be placed in the package path created under Src/main/Java. The details are as follows

Read More: