类 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 EntityScanPackagesget(BeanFactory beanFactory) Return theEntityScanPackagesfor the given bean factory.Return the package names specified from all@EntityScanannotations.static voidregister(BeanDefinitionRegistry registry, String... packageNames) Register the specified entity scan packages with the system.static voidregister(BeanDefinitionRegistry registry, Collection<String> packageNames) Register the specified entity scan packages with the system.
-
方法详细资料
-
getPackageNames
Return the package names specified from all@EntityScanannotations.- 返回:
- the entity scan package names
-
get
Return theEntityScanPackagesfor the given bean factory.- 参数:
beanFactory- the source bean factory- 返回:
- the
EntityScanPackagesfor 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
-