Annotation Type EnableEntityViews
@Retention(RUNTIME)
@Target(TYPE)
@Documented
@Import(EntityViewRegistrar.class)
public @interface EnableEntityViews
Annotation to enable entity view scanning. By enabling scanning, a bean for
EntityViewConfiguration is made available.- Since:
- 1.2.0
- Author:
- Moritz Becker
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<?>[]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[]Specifies which types are eligible for component scanning.String[]Alias forbasePackages().
-
Element Details
-
value
Alias forbasePackages().Allows for more concise annotation declarations if no other attributes are needed — for example,
@ComponentScan("org.my.pkg")instead of@ComponentScan(basePackages = "org.my.pkg").- Default:
- {}
-
basePackages
Base packages to scan for annotated components.value()is an alias for (and mutually exclusive with) this attribute.Use
basePackageClasses()for a type-safe alternative to String-based package names.- Default:
- {}
-
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.
- Default:
- {}
-
includeFilters
org.springframework.context.annotation.ComponentScan.Filter[] includeFiltersSpecifies which types are eligible for component scanning. Further narrows the set of candidate components from everything inbasePackages()to everything in the base packages that matches the given filter or filters.- Default:
- {}
-
excludeFilters
org.springframework.context.annotation.ComponentScan.Filter[] excludeFiltersSpecifies which types are not eligible for component scanning.- Default:
- {}
-