类的使用
org.springframework.context.annotation.Bean
使用Bean的程序包 程序包 说明 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.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中Bean的使用
注释类型为Bean的org.springframework.cache.annotation中的方法 修饰符和类型 方法 说明 BeanFactoryCacheOperationSourceAdvisor
ProxyCachingConfiguration. cacheAdvisor()
CacheInterceptor
ProxyCachingConfiguration. cacheInterceptor()
CacheOperationSource
ProxyCachingConfiguration. cacheOperationSource()
org.springframework.cache.aspectj中Bean的使用
注释类型为Bean的org.springframework.cache.aspectj中的方法 修饰符和类型 方法 说明 org.springframework.cache.aspectj.AnnotationCacheAspect
AspectJCachingConfiguration. cacheAspect()
org.springframework.cache.aspectj.JCacheCacheAspect
AspectJJCacheConfiguration. cacheAspect()
org.springframework.cache.jcache.config中Bean的使用
注释类型为Bean的org.springframework.cache.jcache.config中的方法 修饰符和类型 方法 说明 BeanFactoryJCacheOperationSourceAdvisor
ProxyJCacheConfiguration. cacheAdvisor()
JCacheInterceptor
ProxyJCacheConfiguration. cacheInterceptor()
JCacheOperationSource
AbstractJCacheConfiguration. cacheOperationSource()
org.springframework.context.annotation中Bean的使用
注释类型为Bean的org.springframework.context.annotation中的方法 修饰符和类型 方法 说明 LoadTimeWeaver
LoadTimeWeavingConfiguration. loadTimeWeaver()
AnnotationMBeanExporter
MBeanExportConfiguration. mbeanExporter()
org.springframework.context.annotation.aspectj中Bean的使用
注释类型为Bean的org.springframework.context.annotation.aspectj中的方法 修饰符和类型 方法 说明 org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect
SpringConfiguredConfiguration. beanConfigurerAspect()
org.springframework.jms.annotation中Bean的使用
注释类型为Bean的org.springframework.jms.annotation中的方法 修饰符和类型 方法 说明 JmsListenerEndpointRegistry
JmsBootstrapConfiguration. defaultJmsListenerEndpointRegistry()
JmsListenerAnnotationBeanPostProcessor
JmsBootstrapConfiguration. jmsListenerAnnotationProcessor()
org.springframework.messaging.simp.config中Bean的使用
org.springframework.scheduling.annotation中Bean的使用
注释类型为Bean的org.springframework.scheduling.annotation中的方法 修饰符和类型 方法 说明 AsyncAnnotationBeanPostProcessor
ProxyAsyncConfiguration. asyncAdvisor()
ScheduledAnnotationBeanPostProcessor
SchedulingConfiguration. scheduledAnnotationProcessor()
org.springframework.scheduling.aspectj中Bean的使用
注释类型为Bean的org.springframework.scheduling.aspectj中的方法 修饰符和类型 方法 说明 org.springframework.scheduling.aspectj.AnnotationAsyncExecutionAspect
AspectJAsyncConfiguration. asyncAdvisor()
org.springframework.transaction.annotation中Bean的使用
注释类型为Bean的org.springframework.transaction.annotation中的方法 修饰符和类型 方法 说明 BeanFactoryTransactionAttributeSourceAdvisor
ProxyTransactionManagementConfiguration. transactionAdvisor(TransactionAttributeSource transactionAttributeSource, TransactionInterceptor transactionInterceptor)
static TransactionalEventListenerFactory
AbstractTransactionManagementConfiguration. transactionalEventListenerFactory()
TransactionAttributeSource
ProxyTransactionManagementConfiguration. transactionAttributeSource()
TransactionInterceptor
ProxyTransactionManagementConfiguration. transactionInterceptor(TransactionAttributeSource transactionAttributeSource)
org.springframework.transaction.aspectj中Bean的使用
注释类型为Bean的org.springframework.transaction.aspectj中的方法 修饰符和类型 方法 说明 org.springframework.transaction.aspectj.JtaAnnotationTransactionAspect
AspectJJtaTransactionManagementConfiguration. jtaTransactionAspect()
org.springframework.transaction.aspectj.AnnotationTransactionAspect
AspectJTransactionManagementConfiguration. transactionAspect()
org.springframework.web.reactive.config中Bean的使用
org.springframework.web.servlet.config.annotation中Bean的使用
注释类型为Bean的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 BeanNameUrlHandlerMapping
WebMvcConfigurationSupport. beanNameHandlerMapping(FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)
Return aBeanNameUrlHandlerMapping
ordered at 2 to map URL paths to controller bean names.HandlerMapping
WebMvcConfigurationSupport. defaultServletHandlerMapping()
Return a handler mapping ordered at Integer.MAX_VALUE with a mapped default servlet handler.HandlerExceptionResolver
WebMvcConfigurationSupport. handlerExceptionResolver(ContentNegotiationManager contentNegotiationManager)
Returns aHandlerExceptionResolverComposite
containing a list of exception resolvers obtained either throughWebMvcConfigurationSupport.configureHandlerExceptionResolvers(java.util.List<org.springframework.web.servlet.HandlerExceptionResolver>)
or throughWebMvcConfigurationSupport.addDefaultHandlerExceptionResolvers(java.util.List<org.springframework.web.servlet.HandlerExceptionResolver>, org.springframework.web.accept.ContentNegotiationManager)
.HandlerFunctionAdapter
WebMvcConfigurationSupport. handlerFunctionAdapter()
Returns aHandlerFunctionAdapter
for processing requests through handler functions.HttpRequestHandlerAdapter
WebMvcConfigurationSupport. httpRequestHandlerAdapter()
Returns aHttpRequestHandlerAdapter
for processing requests withHttpRequestHandlers
.ContentNegotiationManager
WebMvcConfigurationSupport. mvcContentNegotiationManager()
Return aContentNegotiationManager
instance to use to determine requested media types in a given request.FormattingConversionService
WebMvcConfigurationSupport. mvcConversionService()
Return aFormattingConversionService
for use with annotated controllers.HandlerMappingIntrospector
WebMvcConfigurationSupport. mvcHandlerMappingIntrospector()
PathMatcher
WebMvcConfigurationSupport. mvcPathMatcher()
Return a globalPathMatcher
instance for path matching patterns inHandlerMappings
.ResourceUrlProvider
WebMvcConfigurationSupport. mvcResourceUrlProvider()
AResourceUrlProvider
bean for use with the MVC dispatcher.CompositeUriComponentsContributor
WebMvcConfigurationSupport. mvcUriComponentsContributor(FormattingConversionService conversionService, RequestMappingHandlerAdapter requestMappingHandlerAdapter)
Return an instance ofCompositeUriComponentsContributor
for use withMvcUriComponentsBuilder
.UrlPathHelper
WebMvcConfigurationSupport. mvcUrlPathHelper()
Return a globalUrlPathHelper
instance for path matching patterns inHandlerMappings
.Validator
WebMvcConfigurationSupport. mvcValidator()
Return a globalValidator
instance for example for validating@ModelAttribute
and@RequestBody
method arguments.ViewResolver
WebMvcConfigurationSupport. mvcViewResolver(ContentNegotiationManager contentNegotiationManager)
Register aViewResolverComposite
that contains a chain of view resolvers to use for view resolution.RequestMappingHandlerAdapter
WebMvcConfigurationSupport. requestMappingHandlerAdapter(ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, Validator validator)
Returns aRequestMappingHandlerAdapter
for processing requests through annotated controller methods.RequestMappingHandlerMapping
WebMvcConfigurationSupport. requestMappingHandlerMapping(ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)
Return aRequestMappingHandlerMapping
ordered at 0 for mapping requests to annotated controllers.HandlerMapping
WebMvcConfigurationSupport. resourceHandlerMapping(UrlPathHelper urlPathHelper, PathMatcher pathMatcher, ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)
Return a handler mapping ordered at Integer.MAX_VALUE-1 with mapped resource handlers.RouterFunctionMapping
WebMvcConfigurationSupport. routerFunctionMapping(FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)
Return aRouterFunctionMapping
ordered at 3 to map router functions.SimpleControllerHandlerAdapter
WebMvcConfigurationSupport. simpleControllerHandlerAdapter()
Returns aSimpleControllerHandlerAdapter
for processing requests with interface-based controllers.HandlerMapping
WebMvcConfigurationSupport. viewControllerHandlerMapping(PathMatcher pathMatcher, UrlPathHelper urlPathHelper, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)
Return a handler mapping ordered at 1 to map URL paths directly to view names.org.springframework.web.socket.config.annotation中Bean的使用
注释类型为Bean的org.springframework.web.socket.config.annotation中的方法 修饰符和类型 方法 说明 TaskScheduler
WebSocketConfigurationSupport. defaultSockJsTaskScheduler()
The default TaskScheduler to use if none is registered explicitly viaSockJsServiceRegistration.setTaskScheduler(org.springframework.scheduling.TaskScheduler)
:HandlerMapping
WebSocketMessageBrokerConfigurationSupport. stompWebSocketHandlerMapping()
WebSocketHandler
WebSocketMessageBrokerConfigurationSupport. subProtocolWebSocketHandler()
HandlerMapping
WebSocketConfigurationSupport. webSocketHandlerMapping()
WebSocketMessageBrokerStats
WebSocketMessageBrokerConfigurationSupport. webSocketMessageBrokerStats()
static CustomScopeConfigurer
WebSocketMessageBrokerConfigurationSupport. webSocketScopeConfigurer()