Annotation Interface ServerConfiguration


@Retention(RUNTIME) @Configuration @ComponentScan(includeFilters=, useDefaultFilters=false) @ServerContext public @interface ServerConfiguration
This annotation is used to define beans in the application context of the /server servlet, and also scan for components annotated with @ServerContext which will also be created in the application context of the /server 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 Link icon

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Sets the base packages in which to scan for components.
  • Element Details

    • basePackages Link icon

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