Skip to content

Allow @AutoConfigurationPackage to specify the base packages that should be registered #19023

@chrylis

Description

@chrylis

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions