I have two projects which works differently. First one is used for class loading and second one has its class which is used for doing some processing work.
In first
This is because you are not able to find this class, into your component scan configuration you need to declare the package where your beans live.