Uses of Class
org.springframework.context.annotation.Import
Packages that use Import Package Description org.springframework.cache.annotation Annotations and supporting classes for declarative cache management.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.scheduling.annotation Java 5 annotation for asynchronous method execution.org.springframework.transaction.annotation Spring's support for annotation-based transaction demarcation.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.Uses of Import in org.springframework.cache.annotation
Classes in org.springframework.cache.annotation with annotations of type Import Modifier and Type Class Description interface
EnableCaching
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
Classes in org.springframework.context.annotation with annotations of type Import Modifier and Type Class Description interface
EnableAspectJAutoProxy
Enables support for handling components marked with AspectJ's@Aspect
annotation, similar to functionality found in Spring's<aop:aspectj-autoproxy>
XML element.interface
EnableLoadTimeWeaving
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
EnableMBeanExport
Enables default exporting of all standardMBean
s from the Spring context, as well as well all@ManagedResource
annotated beans.Uses of Import in org.springframework.context.annotation.aspectj
Classes in org.springframework.context.annotation.aspectj with annotations of type Import Modifier and Type Class Description interface
EnableSpringConfigured
Signals the current application context to apply dependency injection to non-managed classes that are instantiated outside of the Spring bean factory (typically classes annotated with the@Configurable
annotation).Uses of Import in org.springframework.jms.annotation
Classes in org.springframework.jms.annotation with annotations of type Import Modifier and Type Class Description interface
EnableJms
Enable JMS listener annotated endpoints that are created under the cover by aJmsListenerContainerFactory
.Uses of Import in org.springframework.scheduling.annotation
Classes in org.springframework.scheduling.annotation with annotations of type Import Modifier and Type Class Description interface
EnableAsync
Enables Spring's asynchronous method execution capability, similar to functionality found in Spring's<task:*>
XML namespace.interface
EnableScheduling
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
Classes in org.springframework.transaction.annotation with annotations of type Import Modifier and Type Class Description interface
EnableTransactionManagement
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
Classes in org.springframework.web.reactive.config with annotations of type Import Modifier and Type Class Description interface
EnableWebFlux
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
Classes in org.springframework.web.servlet.config.annotation with annotations of type Import Modifier and Type Class Description interface
EnableWebMvc
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
Classes in org.springframework.web.socket.config.annotation with annotations of type Import Modifier and Type Class Description interface
EnableWebSocket
Add this annotation to an@Configuration
class to configure processing WebSocket requests.interface
EnableWebSocketMessageBroker
Add this annotation to an@Configuration
class to enable broker-backed messaging over WebSocket using a higher-level messaging sub-protocol.