接口 AnnotationConfigRegistry
public interface AnnotationConfigRegistry
Common interface for annotation config application contexts,
defining
register(Class[]) and scan(String...) methods.- 从以下版本开始:
- 4.0
- 作者:
- TODAY 2021/9/30 23:06
-
方法概要
-
方法详细资料
-
register
Register one or more component classes to be processed.Calls to
registerare idempotent; adding the same component class more than once has no additional effect. LoadImportbeans from input components classes- 参数:
components- one or more component classes, e.g.@Configurationclasses- 从以下版本开始:
- 4.0
-
scan
Perform a scan within the specified base packages.- 参数:
basePackages- the packages to scan for component classes
-