AutoConfigurationPackages.BasePackages is registered in such a way that we don't generate the appropriate code for AOT. We create a GenericBeanDefinition that has an instance supplier. I think there is a way to make this more descriptive so that it works with AOT ouf-of-the-box.