Uses of Annotation Interface
org.springframework.context.annotation.Import
Package
Description
Annotations and supporting classes for declarative cache management.
Annotation support for the Application Context, including JSR-250 "common"
annotations, component-scanning, and Java-based metadata for creating
Spring-managed objects.
Annotations and support classes for declarative JMS listener endpoints.
Annotation support for asynchronous method execution.
Spring's support for annotation-based transaction demarcation.
Spring WebFlux configuration infrastructure.
Annotation-based setup for Spring MVC.
Support for annotation-based WebSocket setup in configuration classes.
-
Uses of Import in org.springframework.cache.annotation
Modifier and TypeClassDescription@interface
Enables Spring's annotation-driven cache management capability, similar to the support found in Spring's<cache:*>
XML namespace. -
Uses of Import in org.springframework.context.annotation
Modifier and TypeClassDescription@interface
Enables support for handling components marked with AspectJ's@Aspect
annotation, similar to functionality found in Spring's<aop:aspectj-autoproxy>
XML element.@interface
Activates a SpringLoadTimeWeaver
for this application context, available as a bean with the name "loadTimeWeaver", similar to the<context:load-time-weaver>
element in Spring XML.@interface
Enables default exporting of all standardMBean
s from the Spring context, as well as all@ManagedResource
annotated beans. -
Uses of Import in org.springframework.context.annotation.aspectj
Modifier and TypeClassDescription@interface
Signals the current application context to apply dependency injection to non-managed classes that are instantiated outside the Spring bean factory (typically classes annotated with the@Configurable
annotation). -
Uses of Import in org.springframework.jms.annotation
Modifier and TypeClassDescription@interface
Enable JMS listener annotated endpoints that are created under the cover by aJmsListenerContainerFactory
. -
Uses of Import in org.springframework.scheduling.annotation
Modifier and TypeClassDescription@interface
Enables Spring's asynchronous method execution capability, similar to functionality found in Spring's<task:*>
XML namespace.@interface
Enables Spring's scheduled task execution capability, similar to functionality found in Spring's<task:*>
XML namespace. -
Uses of Import in org.springframework.transaction.annotation
Modifier and TypeClassDescription@interface
Enables Spring's annotation-driven transaction management capability, similar to the support found in Spring's<tx:*>
XML namespace. -
Uses of Import in org.springframework.web.reactive.config
Modifier and TypeClassDescription@interface
Adding this annotation to an@Configuration
class imports the Spring WebFlux configuration fromWebFluxConfigurationSupport
that enables use of annotated controllers and functional endpoints. -
Uses of Import in org.springframework.web.servlet.config.annotation
Modifier and TypeClassDescription@interface
Adding this annotation to an@Configuration
class imports the Spring MVC configuration fromWebMvcConfigurationSupport
, e.g.: -
Uses of Import in org.springframework.web.socket.config.annotation
Modifier and TypeClassDescription@interface
Add this annotation to an@Configuration
class to configure processing WebSocket requests.@interface
Add this annotation to an@Configuration
class to enable broker-backed messaging over WebSocket using a higher-level messaging sub-protocol.