Annotation Type SpringBootApplication

    • Optional Element Summary

      Optional Elements 
      Modifier and TypeOptional ElementDescription
      Class<?>[]exclude
      Exclude specific auto-configuration classes such that they will never be applied.
      String[]excludeName
      Exclude specific auto-configuration class names such that they will never be applied.
      Class<?>[]scanBasePackageClasses
      Type-safe alternative to scanBasePackages() for specifying the packages to scan for annotated components.
      String[]scanBasePackages
      Base packages to scan for annotated components.
    • Element Detail

      • scanBasePackages

        @AliasFor(annotation=org.springframework.context.annotation.ComponentScan.class,
                  attribute="basePackages")
        String[] scanBasePackages
        Base packages to scan for annotated components. Use scanBasePackageClasses() for a type-safe alternative to String-based package names.
        Returns:
        base packages to scan
        Since:
        1.3.0
        Default:
        {}
      • scanBasePackageClasses

        @AliasFor(annotation=org.springframework.context.annotation.ComponentScan.class,
                  attribute="basePackageClasses")
        Class<?>[] scanBasePackageClasses
        Type-safe alternative to scanBasePackages() for specifying the packages to scan for annotated components. The package of each class specified will be scanned.

        Consider creating a special no-op marker class or interface in each package that serves no purpose other than being referenced by this attribute.

        Returns:
        base packages to scan
        Since:
        1.3.0
        Default:
        {}