程序包的使用
org.springframework.context.annotation
使用org.springframework.context.annotation的程序包 程序包 说明 org.springframework.cache.annotation Annotations and supporting classes for declarative cache management.org.springframework.cache.aspectj org.springframework.cache.jcache.config Support package for declarative JSR-107 caching configuration.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.context.annotation.aspectj org.springframework.jms.annotation Annotations and support classes for declarative JMS listener endpoints.org.springframework.messaging.simp.config Configuration support for WebSocket messaging using higher level messaging protocols.org.springframework.scheduling.annotation Java 5 annotation for asynchronous method execution.org.springframework.scheduling.aspectj org.springframework.transaction.annotation Spring's support for annotation-based transaction demarcation.org.springframework.transaction.aspectj org.springframework.web.context.annotation Provides convenience annotations for web scopes.org.springframework.web.context.support Classes supporting theorg.springframework.web.contextpackage, such as WebApplicationContext implementations and various utility classes.org.springframework.web.reactive.config Spring WebFlux configuration infrastructure.org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.socket.config.annotation Support for annotation-based WebSocket setup in configuration classes.org.springframework.cache.annotation使用的org.springframework.context.annotation中的类 类 说明 AdviceMode Enumeration used to determine whether JDK proxy-based or AspectJ weaving-based advice should be applied.AdviceModeImportSelector Convenient base class forImportSelectorimplementations that select imports based on anAdviceModevalue from an annotation (such as the@Enable*annotations).Bean Indicates that a method produces a bean to be managed by the Spring container.Configuration Indicates that a class declares one or more@Beanmethods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:Import Indicates one or more component classes to import — typically@Configurationclasses.ImportAware Interface to be implemented by any @Configurationclass that wishes to be injected with theAnnotationMetadataof the @Configurationclass that imported it.ImportSelector Interface to be implemented by types that determine which @Configurationclass(es) should be imported based on a given selection criteria, usually one or more annotation attributes.Role Indicates the 'role' hint for a given bean.org.springframework.cache.aspectj使用的org.springframework.context.annotation中的类 类 说明 Bean Indicates that a method produces a bean to be managed by the Spring container.Configuration Indicates that a class declares one or more@Beanmethods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:ImportAware Interface to be implemented by any @Configurationclass that wishes to be injected with theAnnotationMetadataof the @Configurationclass that imported it.Role Indicates the 'role' hint for a given bean.org.springframework.cache.jcache.config使用的org.springframework.context.annotation中的类 类 说明 Bean Indicates that a method produces a bean to be managed by the Spring container.Configuration Indicates that a class declares one or more@Beanmethods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:ImportAware Interface to be implemented by any @Configurationclass that wishes to be injected with theAnnotationMetadataof the @Configurationclass that imported it.Role Indicates the 'role' hint for a given bean.org.springframework.context.annotation使用的org.springframework.context.annotation中的类 类 说明 AdviceMode Enumeration used to determine whether JDK proxy-based or AspectJ weaving-based advice should be applied.AnnotationBeanNameGenerator BeanNameGeneratorimplementation for bean classes annotated with the@Componentannotation or with another annotation that is itself annotated with@Componentas a meta-annotation.AnnotationConfigRegistry Common interface for annotation config application contexts, definingAnnotationConfigRegistry.register(java.lang.Class<?>...)andAnnotationConfigRegistry.scan(java.lang.String...)methods.Bean Indicates that a method produces a bean to be managed by the Spring container.ClassPathBeanDefinitionScanner A bean definition scanner that detects bean candidates on the classpath, registering corresponding bean definitions with a given registry (BeanFactoryorApplicationContext).ClassPathScanningCandidateComponentProvider A component provider that provides candidate components from a base package.CommonAnnotationBeanPostProcessor.LookupElement Class representing generic injection information about an annotated field or setter method, supporting @Resource and related annotations.ComponentScan Configures component scanning directives for use with @Configurationclasses.ComponentScan.Filter Declares the type filter to be used as an include filter or exclude filter.Condition A singleconditionthat must be matched in order for a component to be registered.Conditional Indicates that a component is only eligible for registration when all specified conditions match.ConditionContext Context information for use byConditionimplementations.Configuration Indicates that a class declares one or more@Beanmethods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:ConfigurationCondition.ConfigurationPhase The various configuration phases where the condition could be evaluated.DeferredImportSelector A variation ofImportSelectorthat runs after all@Configurationbeans have been processed.DeferredImportSelector.Group Interface used to group results from different import selectors.DeferredImportSelector.Group.Entry An entry that holds theAnnotationMetadataof the importingConfigurationclass and the class name to import.EnableLoadTimeWeaving.AspectJWeaving AspectJ weaving enablement options.FilterType Enumeration of the type filters that may be used in conjunction with@ComponentScan.FullyQualifiedAnnotationBeanNameGenerator An extension ofAnnotationBeanNameGeneratorthat uses the fully qualified class name as the default bean name if an explicit bean name is not supplied via a supported type-level annotation such as@Component(seeAnnotationBeanNameGeneratorfor details on supported annotations).Import Indicates one or more component classes to import — typically@Configurationclasses.ImportAware Interface to be implemented by any @Configurationclass that wishes to be injected with theAnnotationMetadataof the @Configurationclass that imported it.ImportBeanDefinitionRegistrar Interface to be implemented by types that register additional bean definitions when processing @Configurationclasses.ImportSelector Interface to be implemented by types that determine which @Configurationclass(es) should be imported based on a given selection criteria, usually one or more annotation attributes.LoadTimeWeavingConfigurer Interface to be implemented by@Configurationclasses annotated with@EnableLoadTimeWeavingthat wish to customize theLoadTimeWeaverinstance to be used.MBeanExportConfiguration.SpecificPlatform Specific platforms that might need custom MBean handling.PropertySource Annotation providing a convenient and declarative mechanism for adding aPropertySourceto Spring'sEnvironment.Role Indicates the 'role' hint for a given bean.ScopedProxyMode Enumerates the various scoped-proxy options.ScopeMetadata Describes scope characteristics for a Spring-managed bean including the scope name and the scoped-proxy behavior.ScopeMetadataResolver Strategy interface for resolving the scope of bean definitions.org.springframework.context.annotation.aspectj使用的org.springframework.context.annotation中的类 类 说明 Bean Indicates that a method produces a bean to be managed by the Spring container.Configuration Indicates that a class declares one or more@Beanmethods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:Import Indicates one or more component classes to import — typically@Configurationclasses.Role Indicates the 'role' hint for a given bean.org.springframework.jms.annotation使用的org.springframework.context.annotation中的类 类 说明 Bean Indicates that a method produces a bean to be managed by the Spring container.Configuration Indicates that a class declares one or more@Beanmethods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:Import Indicates one or more component classes to import — typically@Configurationclasses.Role Indicates the 'role' hint for a given bean.org.springframework.messaging.simp.config使用的org.springframework.context.annotation中的类 类 说明 Bean Indicates that a method produces a bean to be managed by the Spring container.org.springframework.scheduling.annotation使用的org.springframework.context.annotation中的类 类 说明 AdviceMode Enumeration used to determine whether JDK proxy-based or AspectJ weaving-based advice should be applied.AdviceModeImportSelector Convenient base class forImportSelectorimplementations that select imports based on anAdviceModevalue from an annotation (such as the@Enable*annotations).Bean Indicates that a method produces a bean to be managed by the Spring container.Configuration Indicates that a class declares one or more@Beanmethods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:Import Indicates one or more component classes to import — typically@Configurationclasses.ImportAware Interface to be implemented by any @Configurationclass that wishes to be injected with theAnnotationMetadataof the @Configurationclass that imported it.ImportSelector Interface to be implemented by types that determine which @Configurationclass(es) should be imported based on a given selection criteria, usually one or more annotation attributes.Role Indicates the 'role' hint for a given bean.org.springframework.scheduling.aspectj使用的org.springframework.context.annotation中的类 类 说明 Bean Indicates that a method produces a bean to be managed by the Spring container.Configuration Indicates that a class declares one or more@Beanmethods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:ImportAware Interface to be implemented by any @Configurationclass that wishes to be injected with theAnnotationMetadataof the @Configurationclass that imported it.Role Indicates the 'role' hint for a given bean.org.springframework.transaction.annotation使用的org.springframework.context.annotation中的类 类 说明 AdviceMode Enumeration used to determine whether JDK proxy-based or AspectJ weaving-based advice should be applied.AdviceModeImportSelector Convenient base class forImportSelectorimplementations that select imports based on anAdviceModevalue from an annotation (such as the@Enable*annotations).Bean Indicates that a method produces a bean to be managed by the Spring container.Configuration Indicates that a class declares one or more@Beanmethods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:Import Indicates one or more component classes to import — typically@Configurationclasses.ImportAware Interface to be implemented by any @Configurationclass that wishes to be injected with theAnnotationMetadataof the @Configurationclass that imported it.ImportSelector Interface to be implemented by types that determine which @Configurationclass(es) should be imported based on a given selection criteria, usually one or more annotation attributes.Role Indicates the 'role' hint for a given bean.org.springframework.transaction.aspectj使用的org.springframework.context.annotation中的类 类 说明 Bean Indicates that a method produces a bean to be managed by the Spring container.Configuration Indicates that a class declares one or more@Beanmethods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:ImportAware Interface to be implemented by any @Configurationclass that wishes to be injected with theAnnotationMetadataof the @Configurationclass that imported it.Role Indicates the 'role' hint for a given bean.org.springframework.web.context.annotation使用的org.springframework.context.annotation中的类 类 说明 Scope When used as a type-level annotation in conjunction with@Component,@Scopeindicates the name of a scope to use for instances of the annotated type.ScopedProxyMode Enumerates the various scoped-proxy options.org.springframework.web.context.support使用的org.springframework.context.annotation中的类 类 说明 AnnotatedBeanDefinitionReader Convenient adapter for programmatic registration of bean classes.AnnotationConfigRegistry Common interface for annotation config application contexts, definingAnnotationConfigRegistry.register(java.lang.Class<?>...)andAnnotationConfigRegistry.scan(java.lang.String...)methods.ClassPathBeanDefinitionScanner A bean definition scanner that detects bean candidates on the classpath, registering corresponding bean definitions with a given registry (BeanFactoryorApplicationContext).ScopeMetadataResolver Strategy interface for resolving the scope of bean definitions.org.springframework.web.reactive.config使用的org.springframework.context.annotation中的类 类 说明 Bean Indicates that a method produces a bean to be managed by the Spring container.Configuration Indicates that a class declares one or more@Beanmethods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:Import Indicates one or more component classes to import — typically@Configurationclasses.org.springframework.web.servlet.config.annotation使用的org.springframework.context.annotation中的类 类 说明 Bean Indicates that a method produces a bean to be managed by the Spring container.Configuration Indicates that a class declares one or more@Beanmethods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:Import Indicates one or more component classes to import — typically@Configurationclasses.Lazy Indicates whether a bean is to be lazily initialized.org.springframework.web.socket.config.annotation使用的org.springframework.context.annotation中的类 类 说明 Bean Indicates that a method produces a bean to be managed by the Spring container.Configuration Indicates that a class declares one or more@Beanmethods and may be processed by the Spring container to generate bean definitions and service requests for those beans at runtime, for example:Import Indicates one or more component classes to import — typically@Configurationclasses.