com.freetimelearn.app
, Spring will recursively scan for components starting from the base package through all directories until the required component is found.com.freetimelearn.app.demo
is a sub package because of the naming structure, just like folders on a file system.