Annotation Type RestApiConfiguration


  • @Retention(RUNTIME)
    @Documented
    @Configuration
    @RestApiContext
    @ComponentScan(includeFilters=,
                   useDefaultFilters=false)
    public @interface RestApiConfiguration
    This annotation is used to define beans in the application context of the /api/v1 servlet, and also scan for components annotated with @RestApiContext which will also be created in the application context of the /api/v1 servlet.

    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  
    • Element Detail

      • basePackages

        @AliasFor(annotation=org.springframework.context.annotation.ComponentScan.class,
                  attribute="basePackages")
        String[] basePackages
        Default:
        {}