Annotation Type ModuleConfiguration


  • @Target(TYPE)
    @Retention(RUNTIME)
    @SpringBootConfiguration
    public @interface ModuleConfiguration
    Each tapir module should have exactly one classed annotated by ModuleConfiguration. The ModuleConfiguration is the main entry point for the Spring configuration of the module. As ModuleConfiguration is SpringBootConfiguration annotated you don't have to add the annotation explicitly. ModuleConfiguration is an Active annotation which generates the META-INF/spring.factories file which is processed by Spring Boot's auto-configuration is capable of. If the component scan is activated, a filter is generated automatically for the NoScan annotation.
    Since:
    2.0.0
    Author:
    Oliver Libutzki <[email protected]>
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean componentScan
      If set to false the ComponentScan annotation is not generated.
      boolean generateSpringFactories
      If set to false the spring.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
      • generateSpringFactories

        boolean generateSpringFactories
        If set to false the spring.factories file is not generated.
        Returns:
        generateSpringFactories
        Since:
        2.0.0
        Default:
        true