Annotation Type RootConfiguration


  • @Retention(RUNTIME)
    @Documented
    @Configuration
    @ComponentScan(excludeFilters={@Filter(DefaultContext.class),,,,})
    public @interface RootConfiguration
    This annotation is used to define beans in the root application context and also scan for components.

    If component scanning is used, this annotation should be used instead of Configuration + ComponentScan to ensure that components annotated with DefaultContext, ServerContext, RestApiContext and WebServicesContext are not scanned and created in the root context.

    Components from com.blueriq.web.starter packages are not scanned also.

    By default, components will be scanned in the package of the class annotated with this annotation and in its subpackages. This can be overridden using the basePackages attribute.

    Since:
    10.0
    Author:
    Petru Galanton
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String[] basePackages
      Sets the base packages in which to scan for components.
    • Element Detail

      • basePackages

        @AliasFor(annotation=org.springframework.context.annotation.ComponentScan.class,
                  attribute="basePackages")
        String[] basePackages
        Sets the base packages in which to scan for components.
        Default:
        {}