Annotation Type BootstrapConfiguration


  • @Target(TYPE)
    @Retention(RUNTIME)
    @SpringBootConfiguration
    public @interface BootstrapConfiguration
    The BootstrapConfiguration is the main entry point for executing tapir tests. By default it enables Spring Boot's auto-configuration and enables component scan. The component scan searches for Spring components which are located in the package (or subpackages) of the class annotated by BootstrapConfiguration. It's possible to deactivate this behaviour by setting componentScan() and/or autoConfigure() to false. If the component scan is activated, a filter is generated automatically for the NoScan annotation. Moreover the annotation checks if the annotated class is already annotated by ComponentScan and/or EnableAutoConfiguration and skips the generation if it's already present. The generated tapir.factories points to the annotated class.
    Since:
    2.0.0
    Author:
    Oliver Libutzki <[email protected]>
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean autoConfigure
      If set to false the EnableAutoConfiguration annotation is not generated.
      boolean componentScan
      If set to false the ComponentScan annotation is not generated.
      boolean generateTapirFactories
      If set to false the tapir.factories file is not generated.
    • Element Detail

      • componentScan

        boolean componentScan
        If set to false the ComponentScan annotation is not generated.
        Returns:
        componentScan
        Since:
        2.0.0
        Default:
        true
      • autoConfigure

        boolean autoConfigure
        If set to false the EnableAutoConfiguration annotation is not generated.
        Returns:
        autoConfigure
        Since:
        2.0.0
        Default:
        true
      • generateTapirFactories

        boolean generateTapirFactories
        If set to false the tapir.factories file is not generated.
        Returns:
        autoConfigure
        Since:
        2.0.0
        Default:
        true