Annotation Interface ImportAutoConfiguration
Import and apply the specified auto-configuration classes. Applies the same ordering
rules as
@EnableAutoConfiguration but restricts the auto-configuration classes
to the specified set, rather than consulting today-strategies.properties.
Can also be used to exclude() specific auto-configuration classes such that
they will never be applied.
Generally, @EnableAutoConfiguration should be used in preference to this
annotation, however, @ImportAutoConfiguration can be useful in some situations
and especially when writing tests.
- 从以下版本开始:
- 4.0 2022/2/1 23:56
- 作者:
- Phillip Webb, Andy Wilkinson, Harry Yang
-
可选元素概要
可选元素
-
元素详细资料
-
value
The auto-configuration classes that should be imported. This is an alias forclasses().- 返回:
- the classes to import
- 默认值:
- {}
-
classes
The auto-configuration classes that should be imported. When empty, the classes are specified using an entry inMETA-INF/today-strategies.propertieswhere the key is the fully-qualified name of the annotated class.- 返回:
- the classes to import
- 默认值:
- {}
-
exclude
Class<?>[] excludeExclude specific auto-configuration classes such that they will never be applied.- 返回:
- the classes to exclude
- 默认值:
- {}
-