アノテーションインターフェース ImportTestcontainers
@TargetSE(TYPESE)
@RetentionSE(RUNTIMESE)
@DocumentedSE
@Import(org.springframework.boot.testcontainers.context.ImportTestcontainersRegistrar.class)
@ImportAutoConfiguration(TestcontainersPropertySourceAutoConfiguration.class)
public @interface ImportTestcontainers
慣用的な Testcontainers 宣言クラスを Spring
ApplicationContext にインポートします。インポートされたクラスから次の要素が考慮されます。Container値を宣言するすべての静的フィールド。- すべての
@DynamicPropertySourceアノテーション付きメソッド。
- 導入:
- 3.1.0
- 作成者:
- Phillip Webb
オプション要素の概要
オプション要素
要素の詳細
value
ClassSE<?>[] valueインポートする宣言クラス。valueが定義されていない場合は、@ImportTestcontainersアノテーションを宣言するクラスが検索されます。- 戻り値:
- インポートする定義クラス
- デフォルト:
- {}