注释类型 EnableAutoConfigScan
-
@Target(TYPE) @Retention(RUNTIME) @Documented @Import({DatasourceConfig.class,FineelyConfigAnnotationRegistry.class}) public @interface EnableAutoConfigScanEnable automatic configuration class scanning@EnableConfigScan(basePackage = "com.fineely.entity", requestMapping = "/rest/config/")
@EnableConfigScan(basePackage = "com.fineely.entity")
- 从以下版本开始:
- 0.0.1
- 另请参阅:
FineelyConfigAnnotationRegistry
-
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 java.lang.Class<? extends ConfigSupport>[]basePackageClassesType-safe alternative tobasePackages()for specifying the packages to scan for entities.java.lang.String[]basePackagesBase packages to scan for entities.java.lang.StringrequestMappingRequest mapping prefix.java.lang.String[]valueAlias for thebasePackages()attribute.
-
-
-
元素详细资料
-
value
@AliasFor("basePackages") java.lang.String[] valueAlias for thebasePackages()attribute. Allows for more concise annotation declarations e.g.:@EnableAutoConfigScan("org.my.pkg")instead of@EnableAutoConfigScan(basePackages="org.my.pkg").- 返回:
- the base packages to scan
- 默认值:
- {}
-
-
-
basePackages
@AliasFor("value") java.lang.String[] basePackagesBase packages to scan for entities.value()is an alias for (and mutually exclusive with) this attribute.Use
basePackageClasses()for a type-safe alternative to String-based package names.- 返回:
- the base packages to scan
- 另请参阅:
ConfigSupport
- 默认值:
- {}
-
-
-
basePackageClasses
java.lang.Class<? extends ConfigSupport>[] basePackageClasses
Type-safe alternative tobasePackages()for specifying the packages to scan for entities. 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 from the base packages to scan
- 默认值:
- {}
-
-