Configures the base packages used by auto-configuration when scanning for entity
classes.
Using @EntityScan
will cause auto-configuration to:
- Set the
packages scanned
for JPA entities.
- Set the packages used with Neo4J's
SessionFactory
.
- Set the
initial entity set
used with Spring Data
MongoDB
,
Cassandra
and
Couchbase
mapping contexts.
One of basePackageClasses()
, basePackages()
or its alias
value()
may be specified to define specific packages to scan. If specific
packages are not defined scanning will occur from the package of the class with this
annotation.