アノテーションインターフェースの使用 
org.springframework.context.annotation.Import
Import を使用するパッケージ 
 パッケージ 
 説明 
 宣言的なキャッシュ管理のためのアノテーションとサポートクラス。
JSR-250「共通」アノテーション、コンポーネントスキャン、Spring 管理オブジェクトを作成するための Java ベースのメタデータなど、アプリケーションコンテキストのアノテーションサポート。
@Configurable アノテーションによって駆動される AspectJ ベースの依存性注入のサポート。 宣言型 JMS リスナーエンドポイントのアノテーションとサポートクラス。
 非同期メソッド実行のアノテーションサポート。
Spring のアノテーションベースのトランザクション境界のサポート。
Spring WebFlux 構成インフラストラクチャ。
Spring MVC のアノテーションベースのセットアップ。
 構成クラスでのアノテーションベースの WebSocket セットアップのサポート。
- org.springframework.cache.annotation 内の Import 使用Import 型のアノテーションを持つ org.springframework.cache.annotation のクラス修飾子と型クラス説明- @interfaceSpring の- <cache:*>XML 名前空間にあるサポートと同様に、Spring のアノテーション駆動型キャッシュ管理機能を有効にします。
- org.springframework.context.annotation 内の Import 使用Import 型のアノテーションを持つ org.springframework.context.annotation のクラス修飾子と型クラス説明- @interfaceSpring の- <aop:aspectj-autoproxy>XML 要素にある機能と同様に、AspectJ の- @Aspectアノテーションでマークされたコンポーネントの処理のサポートを有効にします。- @interfaceこのアプリケーションコンテキストの Spring- LoadTimeWeaverをアクティブ化します。これは、Spring XML の- <context:load-time-weaver>要素と同様に、"loadTimeWeaver" という名前の Bean として使用できます。- @interfaceSpring コンテキストからのすべての標準- MBean、およびすべての- @ManagedResourceアノテーション付き Bean のデフォルトのエクスポートを有効にします。
- org.springframework.context.annotation.aspectj 内の Import 使用Import 型のアノテーションを持つ org.springframework.context.annotation.aspectj のクラス修飾子と型クラス説明- @interface現在のアプリケーションコンテキストに、Spring Bean ファクトリの外部でインスタンス化された非管理クラス(通常は- @Configurableアノテーションが付けられたクラス)に依存性注入を適用するように通知します。
- org.springframework.jms.annotation 内の Import 使用Import 型のアノテーションを持つ org.springframework.jms.annotation のクラス
- org.springframework.scheduling.annotation 内の Import 使用Import 型のアノテーションを持つ org.springframework.scheduling.annotation のクラス修飾子と型クラス説明- @interfaceSpring の- <task:*>XML 名前空間にある機能と同様に、Spring の非同期メソッド実行機能を有効にします。- @interfaceSpring の- <task:*>XML 名前空間にある機能と同様に、Spring のスケジュールされたタスク実行機能を有効にします。
- org.springframework.transaction.annotation 内の Import 使用Import 型のアノテーションを持つ org.springframework.transaction.annotation のクラス修飾子と型クラス説明- @interfaceSpring の- <tx:*>XML 名前空間にあるサポートと同様に、Spring のアノテーション駆動型トランザクション管理機能を有効にします。
- org.springframework.web.reactive.config 内の Import 使用Import 型のアノテーションを持つ org.springframework.web.reactive.config のクラス修飾子と型クラス説明- @interfaceこのアノテーションを- @Configurationクラスに追加すると、- WebFluxConfigurationSupportから Spring WebFlux 構成がインポートされ、アノテーション付きコントローラーと関数エンドポイントの使用が可能になります。
- org.springframework.web.servlet.config.annotation 内の Import 使用Import 型のアノテーションを持つ org.springframework.web.servlet.config.annotation のクラス修飾子と型クラス説明- @interfaceこのアノテーションを- @Configurationクラスに追加すると、Spring MVC 構成が- WebMvcConfigurationSupportからインポートされます。例:
- org.springframework.web.socket.config.annotation 内の Import 使用Import 型のアノテーションを持つ org.springframework.web.socket.config.annotation のクラス修飾子と型クラス説明- @interfaceこのアノテーションを- @Configurationクラスに追加して、WebSocket リクエストの処理を構成します。- @interfaceこのアノテーションを- @Configurationクラスに追加して、より高レベルのメッセージングサブプロトコルを使用して、WebSocket を介したブローカによるメッセージングを有効にします。