类的使用
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中的方法 修饰符和类型 方法 说明 BeanFactoryCacheOperationSourceAdvisorProxyCachingConfiguration. cacheAdvisor()CacheInterceptorProxyCachingConfiguration. cacheInterceptor()CacheOperationSourceProxyCachingConfiguration. cacheOperationSource()org.springframework.cache.aspectj中Bean的使用
注释类型为Bean的org.springframework.cache.aspectj中的方法 修饰符和类型 方法 说明 org.springframework.cache.aspectj.AnnotationCacheAspectAspectJCachingConfiguration. cacheAspect()org.springframework.cache.aspectj.JCacheCacheAspectAspectJJCacheConfiguration. cacheAspect()org.springframework.cache.jcache.config中Bean的使用
注释类型为Bean的org.springframework.cache.jcache.config中的方法 修饰符和类型 方法 说明 BeanFactoryJCacheOperationSourceAdvisorProxyJCacheConfiguration. cacheAdvisor()JCacheInterceptorProxyJCacheConfiguration. cacheInterceptor()JCacheOperationSourceAbstractJCacheConfiguration. cacheOperationSource()org.springframework.context.annotation中Bean的使用
注释类型为Bean的org.springframework.context.annotation中的方法 修饰符和类型 方法 说明 LoadTimeWeaverLoadTimeWeavingConfiguration. loadTimeWeaver()AnnotationMBeanExporterMBeanExportConfiguration. mbeanExporter()org.springframework.context.annotation.aspectj中Bean的使用
注释类型为Bean的org.springframework.context.annotation.aspectj中的方法 修饰符和类型 方法 说明 org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspectSpringConfiguredConfiguration. beanConfigurerAspect()org.springframework.jms.annotation中Bean的使用
注释类型为Bean的org.springframework.jms.annotation中的方法 修饰符和类型 方法 说明 JmsListenerEndpointRegistryJmsBootstrapConfiguration. defaultJmsListenerEndpointRegistry()JmsListenerAnnotationBeanPostProcessorJmsBootstrapConfiguration. jmsListenerAnnotationProcessor()org.springframework.messaging.simp.config中Bean的使用
org.springframework.scheduling.annotation中Bean的使用
注释类型为Bean的org.springframework.scheduling.annotation中的方法 修饰符和类型 方法 说明 AsyncAnnotationBeanPostProcessorProxyAsyncConfiguration. asyncAdvisor()ScheduledAnnotationBeanPostProcessorSchedulingConfiguration. scheduledAnnotationProcessor()org.springframework.scheduling.aspectj中Bean的使用
注释类型为Bean的org.springframework.scheduling.aspectj中的方法 修饰符和类型 方法 说明 org.springframework.scheduling.aspectj.AnnotationAsyncExecutionAspectAspectJAsyncConfiguration. asyncAdvisor()org.springframework.transaction.annotation中Bean的使用
注释类型为Bean的org.springframework.transaction.annotation中的方法 修饰符和类型 方法 说明 BeanFactoryTransactionAttributeSourceAdvisorProxyTransactionManagementConfiguration. transactionAdvisor(TransactionAttributeSource transactionAttributeSource, TransactionInterceptor transactionInterceptor)static TransactionalEventListenerFactoryAbstractTransactionManagementConfiguration. transactionalEventListenerFactory()TransactionAttributeSourceProxyTransactionManagementConfiguration. transactionAttributeSource()TransactionInterceptorProxyTransactionManagementConfiguration. transactionInterceptor(TransactionAttributeSource transactionAttributeSource)org.springframework.transaction.aspectj中Bean的使用
注释类型为Bean的org.springframework.transaction.aspectj中的方法 修饰符和类型 方法 说明 org.springframework.transaction.aspectj.JtaAnnotationTransactionAspectAspectJJtaTransactionManagementConfiguration. jtaTransactionAspect()org.springframework.transaction.aspectj.AnnotationTransactionAspectAspectJTransactionManagementConfiguration. transactionAspect()org.springframework.web.reactive.config中Bean的使用
org.springframework.web.servlet.config.annotation中Bean的使用
注释类型为Bean的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 BeanNameUrlHandlerMappingWebMvcConfigurationSupport. beanNameHandlerMapping(FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)Return aBeanNameUrlHandlerMappingordered at 2 to map URL paths to controller bean names.HandlerMappingWebMvcConfigurationSupport. defaultServletHandlerMapping()Return a handler mapping ordered at Integer.MAX_VALUE with a mapped default servlet handler.HandlerExceptionResolverWebMvcConfigurationSupport. handlerExceptionResolver(ContentNegotiationManager contentNegotiationManager)Returns aHandlerExceptionResolverCompositecontaining 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).HandlerFunctionAdapterWebMvcConfigurationSupport. handlerFunctionAdapter()Returns aHandlerFunctionAdapterfor processing requests through handler functions.HttpRequestHandlerAdapterWebMvcConfigurationSupport. httpRequestHandlerAdapter()Returns aHttpRequestHandlerAdapterfor processing requests withHttpRequestHandlers.ContentNegotiationManagerWebMvcConfigurationSupport. mvcContentNegotiationManager()Return aContentNegotiationManagerinstance to use to determine requested media types in a given request.FormattingConversionServiceWebMvcConfigurationSupport. mvcConversionService()Return aFormattingConversionServicefor use with annotated controllers.HandlerMappingIntrospectorWebMvcConfigurationSupport. mvcHandlerMappingIntrospector()PathMatcherWebMvcConfigurationSupport. mvcPathMatcher()Return a globalPathMatcherinstance for path matching patterns inHandlerMappings.ResourceUrlProviderWebMvcConfigurationSupport. mvcResourceUrlProvider()AResourceUrlProviderbean for use with the MVC dispatcher.CompositeUriComponentsContributorWebMvcConfigurationSupport. mvcUriComponentsContributor(FormattingConversionService conversionService, RequestMappingHandlerAdapter requestMappingHandlerAdapter)Return an instance ofCompositeUriComponentsContributorfor use withMvcUriComponentsBuilder.UrlPathHelperWebMvcConfigurationSupport. mvcUrlPathHelper()Return a globalUrlPathHelperinstance for path matching patterns inHandlerMappings.ValidatorWebMvcConfigurationSupport. mvcValidator()Return a globalValidatorinstance for example for validating@ModelAttributeand@RequestBodymethod arguments.ViewResolverWebMvcConfigurationSupport. mvcViewResolver(ContentNegotiationManager contentNegotiationManager)Register aViewResolverCompositethat contains a chain of view resolvers to use for view resolution.RequestMappingHandlerAdapterWebMvcConfigurationSupport. requestMappingHandlerAdapter(ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, Validator validator)Returns aRequestMappingHandlerAdapterfor processing requests through annotated controller methods.RequestMappingHandlerMappingWebMvcConfigurationSupport. requestMappingHandlerMapping(ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)Return aRequestMappingHandlerMappingordered at 0 for mapping requests to annotated controllers.HandlerMappingWebMvcConfigurationSupport. 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.RouterFunctionMappingWebMvcConfigurationSupport. routerFunctionMapping(FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)Return aRouterFunctionMappingordered at 3 to map router functions.SimpleControllerHandlerAdapterWebMvcConfigurationSupport. simpleControllerHandlerAdapter()Returns aSimpleControllerHandlerAdapterfor processing requests with interface-based controllers.HandlerMappingWebMvcConfigurationSupport. 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中的方法 修饰符和类型 方法 说明 TaskSchedulerWebSocketConfigurationSupport. defaultSockJsTaskScheduler()The default TaskScheduler to use if none is registered explicitly viaSockJsServiceRegistration.setTaskScheduler(org.springframework.scheduling.TaskScheduler):HandlerMappingWebSocketMessageBrokerConfigurationSupport. stompWebSocketHandlerMapping()WebSocketHandlerWebSocketMessageBrokerConfigurationSupport. subProtocolWebSocketHandler()HandlerMappingWebSocketConfigurationSupport. webSocketHandlerMapping()WebSocketMessageBrokerStatsWebSocketMessageBrokerConfigurationSupport. webSocketMessageBrokerStats()static CustomScopeConfigurerWebSocketMessageBrokerConfigurationSupport. webSocketScopeConfigurer()