接口的使用
org.springframework.context.annotation.AnnotationConfigRegistry
使用AnnotationConfigRegistry的程序包 程序包 说明 org.springframework.context.annotation Annotation support for the Application Context, including JSR-250 "common" annotations, component-scanning, and Java-based metadata for creating Spring-managed objects.org.springframework.web.context.support Classes supporting theorg.springframework.web.contextpackage, such as WebApplicationContext implementations and various utility classes.org.springframework.context.annotation中AnnotationConfigRegistry的使用
实现AnnotationConfigRegistry的org.springframework.context.annotation中的类 修饰符和类型 类 说明 classAnnotationConfigApplicationContextStandalone application context, accepting component classes as input — in particular@Configuration-annotated classes, but also plain@Componenttypes and JSR-330 compliant classes usingjavax.injectannotations.org.springframework.web.context.support中AnnotationConfigRegistry的使用
实现AnnotationConfigRegistry的org.springframework.web.context.support中的类 修饰符和类型 类 说明 classAnnotationConfigWebApplicationContextWebApplicationContextimplementation which accepts component classes as input — in particular@Configuration-annotated classes, but also plain@Componentclasses and JSR-330 compliant classes usingjavax.injectannotations.