Package org.jdbi.v3.spring5
Annotation Type EnableJdbiRepositories
@Retention(RUNTIME)
@Target(TYPE)
@Documented
@Import(JdbiRepositoryRegistrar.class)
public @interface EnableJdbiRepositories
Annotating a spring configuration class with this annotation enables the scanning/detection of jdbi repositories.
The scanned packages can be configured in the annotation. If no explicit configuration is done the package of the
annotated element will be used as the sole base package.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionClass<?>[]
The packages of these classes are used as base packages for repository scanning in addition to thevalue()
andbasePackages()
properties.String[]
The names of the base packages used for repository scanning in addition to thevalue()
andbasePackageClasses()
properties.Class<?>[]
Exact array of classes to consider as repositories.String[]
The names of the base packages used for repository scanning in addition to thebasePackages()
andbasePackageClasses()
properties.
-
Element Details
-
value
String[] valueThe names of the base packages used for repository scanning in addition to thebasePackages()
andbasePackageClasses()
properties.- Default:
- {}
-
basePackages
String[] basePackagesThe names of the base packages used for repository scanning in addition to thevalue()
andbasePackageClasses()
properties.- Default:
- {}
-
basePackageClasses
Class<?>[] basePackageClassesThe packages of these classes are used as base packages for repository scanning in addition to thevalue()
andbasePackages()
properties.- Default:
- {}
-
repositories
Class<?>[] repositoriesExact array of classes to consider as repositories. Overriding any of the values defined invalue()
,basePackages()
orbasePackageClasses()
.- Default:
- {}
-