@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @ImportAutoConfiguration(value=ModelMapperAutoConfiguration.class) @ComponentScan(useDefaultFilters=false, includeFilters=) public @interface WithModelMapper
Annotation that can be used in combination with @RunWith(SpringRunner.class) in case model mapper component are needed for testing.
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.Class<?>[] |
basePackageClasses
Type-safe alternative to
basePackages() for specifying the packages
to scan for annotated components. |
java.lang.String[] |
basePackages
Base packages to scan for mapper's components.
|
@AliasFor(annotation=org.springframework.context.annotation.ComponentScan.class) public abstract java.lang.String[] basePackages
Use basePackageClasses() for a type-safe alternative to
String-based package names.
@AliasFor(annotation=org.springframework.context.annotation.ComponentScan.class) public abstract java.lang.Class<?>[] basePackageClasses
basePackages() 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.