类 AnnotationConfigWebContextLoader

所有已实现的接口:
AotContextLoader, ContextLoader, SmartContextLoader

public class AnnotationConfigWebContextLoader extends AbstractGenericWebContextLoader
Concrete implementation of AbstractGenericWebContextLoader that loads bean definitions from annotated classes.

See the Javadoc for @ContextConfiguration for a definition of annotated class.

Note: AnnotationConfigWebContextLoader supports annotated classes rather than the String-based resource locations defined by the legacy ContextLoader API. Thus, although AnnotationConfigWebContextLoader extends AbstractGenericWebContextLoader, AnnotationConfigWebContextLoader does not support any String-based methods defined by AbstractContextLoader or AbstractGenericWebContextLoader. Consequently, AnnotationConfigWebContextLoader should chiefly be considered a SmartContextLoader rather than a ContextLoader.

从以下版本开始:
4.0
作者:
Sam Brannen, Harry Yang
另请参阅: