接口的使用
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.context
package, such as WebApplicationContext implementations and various utility classes.org.springframework.context.annotation中AnnotationConfigRegistry的使用
实现AnnotationConfigRegistry的org.springframework.context.annotation中的类 修饰符和类型 类 说明 class
AnnotationConfigApplicationContext
Standalone application context, accepting component classes as input — in particular@Configuration
-annotated classes, but also plain@Component
types and JSR-330 compliant classes usingjavax.inject
annotations.org.springframework.web.context.support中AnnotationConfigRegistry的使用
实现AnnotationConfigRegistry的org.springframework.web.context.support中的类 修饰符和类型 类 说明 class
AnnotationConfigWebApplicationContext
WebApplicationContext
implementation which accepts component classes as input — in particular@Configuration
-annotated classes, but also plain@Component
classes and JSR-330 compliant classes usingjavax.inject
annotations.