I am writing a Boot starter where I have some JPA repositories in foo.jpa. I want to add auto-configuration in foo.jpa.autoconfigure, but the only way to get the repositories auto-configured with the usual Boot scanning is to use @AutoConfigurationPackage, and @AutoConfigurationPackage does not take any arguments.
Parallel with annotations such as @ComponentScan, @AutoConfigurationPackage should take basePackage and basePackageClasses arguments to specify a different root package(s) to be incorporated.