类 EntityScanPackages
java.lang.Object
org.springframework.boot.autoconfigure.domain.EntityScanPackages
Class for storing
@EntityScan
specified packages for reference later
(e.g. by JPA auto-configuration).- 从以下版本开始:
- 1.4.0
- 作者:
- Phillip Webb
- 另请参阅:
-
方法概要
修饰符和类型方法说明static EntityScanPackages
get
(BeanFactory beanFactory) Return theEntityScanPackages
for the given bean factory.Return the package names specified from all@EntityScan
annotations.static void
register
(BeanDefinitionRegistry registry, String... packageNames) Register the specified entity scan packages with the system.static void
register
(BeanDefinitionRegistry registry, Collection<String> packageNames) Register the specified entity scan packages with the system.
-
方法详细资料
-
getPackageNames
Return the package names specified from all@EntityScan
annotations.- 返回:
- the entity scan package names
-
get
Return theEntityScanPackages
for the given bean factory.- 参数:
beanFactory
- the source bean factory- 返回:
- the
EntityScanPackages
for the bean factory (nevernull
)
-
register
Register the specified entity scan packages with the system.- 参数:
registry
- the source registrypackageNames
- the package names to register
-
register
Register the specified entity scan packages with the system.- 参数:
registry
- the source registrypackageNames
- the package names to register
-