Hi, Thanks for the video but I am confused over one thing. I have a project in which the controller and the SpringBootApplication classes are residing in different packages and I have not used @ComponentScan in the SpringBootApplication class and still it was working. When I created a different project with the same structure only then I got the error and therefore I am confused how can it happen one time and not the other time with the same configuration.
Bro i know it's after a long time but can u help me out i added all files in same package and i tried component scan as well but still no luck please help me man