Should also check for packages? You can set the packages to point to class marked with @Configuration or in general with any other spring stereotype annotation.