注释接口 EnableJimmerRepositories
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Inherited
@Import(JimmerRepositoriesRegistrar.class)
public @interface EnableJimmerRepositories
-
可选元素概要
可选元素修饰符和类型可选元素说明Class<?>[]Type-safe alternative tobasePackages()for specifying the packages to scan for annotated components.String[]Base packages to scan for annotated components.org.springframework.context.annotation.ComponentScan.Filter[]Specifies which types are not eligible for component scanning.org.springframework.context.annotation.ComponentScan.Filter[]Class<?>Returns theFactoryBeanclass to be used for each repository instance.Configures the name of the JSqlClient/KSqlClient bean definition to be used to create repositories discovered through this annotation.String[]Alias for thebasePackages()attribute.
-
元素详细资料
-
value
Alias for thebasePackages()attribute. Allows for more concise annotation declarations e.g.:@EnableJimmerRepositories("org.my.pkg")instead of@EnableJimmerRepositories(basePackages="org.my.pkg").- 默认值:
{}
-
basePackages
Base packages to scan for annotated components.value()is an alias for (and mutually exclusive with) this attribute. UsebasePackageClasses()for a type-safe alternative to String-based package names.- 默认值:
{}
-
basePackageClasses
Class<?>[] basePackageClassesType-safe alternative tobasePackages()for specifying the packages to scan for annotated components. The package of each class specified will be scanned. Consider creating a special no-op marker class or interface in each package that serves no purpose other than being referenced by this attribute.- 默认值:
{}
-
includeFilters
org.springframework.context.annotation.ComponentScan.Filter[] includeFilters- 默认值:
{}
-
excludeFilters
org.springframework.context.annotation.ComponentScan.Filter[] excludeFiltersSpecifies which types are not eligible for component scanning.- 默认值:
{}
-
repositoryFactoryBeanClass
Class<?> repositoryFactoryBeanClassReturns theFactoryBeanclass to be used for each repository instance. Defaults toJimmerRepositoryFactoryBean.- 默认值:
org.babyfish.jimmer.spring.repository.support.JimmerRepositoryFactoryBean.class
-
sqlClientRef
String sqlClientRefConfigures the name of the JSqlClient/KSqlClient bean definition to be used to create repositories discovered through this annotation. Defaults to sqlClient.- 默认值:
"sqlClient"
-
namedQueriesLocation
@Deprecated(message="Jimmer does not need it, but spring data extension requires it") String namedQueriesLocation- 默认值:
""
-
repositoryImplementationPostfix
@Deprecated(message="Jimmer does not need it, but spring data extension requires it") String repositoryImplementationPostfix- 默认值:
"Impl"
-