The obvious way of using ClassPathScanningCandidateComponentProvider doesn\'t work which is expected, I guess, since it looks at the registered components and i
ClassPathScanningCandidateComponentProvider