注释类型 DaoScan
-
@Retention(RUNTIME) @Target(TYPE) @Documented @Repeatable(DaoScans.class) public @interface DaoScan
- 作者:
- 黄川 huchuc@vip.qq.com
-
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 Class<?>[]basePackageClassesType-safe alternative tobasePackages()for specifying the packages to scan for annotated components.String[]basePackagesBase packages to scan for MyBatis interfaces.StringdataSource数据源,采用默认数据源String[]valueAlias for thebasePackages()attribute.
-
-
-
元素详细资料
-
value
String[] value
Alias for thebasePackages()attribute. Allows for more concise annotation declarations e.g.:@DaoScan("org.my.pkg")instead of@DaoScan(basePackages = "org.my.pkg")}.- 返回:
- base package names
- 默认值:
- {}
-
-
-
basePackages
String[] basePackages
Base packages to scan for MyBatis interfaces. Note that only interfaces with at least one method will be registered; concrete classes will be ignored.- 返回:
- base package names for scanning mapper interface
- 默认值:
- {}
-
-
-
basePackageClasses
Class<?>[] basePackageClasses
Type-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.
- 返回:
- classes that indicate base package for scanning mapper interface
- 默认值:
- {}
-
-
-
dataSource
String dataSource
数据源,采用默认数据源- 默认值:
- "dataSource"
-
-