注释类型 SpringBootApplication

    • 元素详细资料

      • exclude

        @AliasFor(annotation=EnableAutoConfiguration.class,
                  attribute="exclude")
        Class<?>[] exclude
        Exclude specific auto-configuration classes such that they will never be applied.
        返回:
        the classes to exclude
        默认值:
        {}
      • excludeName

        @AliasFor(annotation=EnableAutoConfiguration.class,
                  attribute="excludeName")
        String[] excludeName
        Exclude specific auto-configuration class names such that they will never be applied.
        返回:
        the class names to exclude
        从以下版本开始:
        1.3.0
        默认值:
        {}
      • 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.
        返回:
        base packages to scan
        从以下版本开始:
        1.3.0
        默认值:
        {}
      • 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.

        返回:
        base packages to scan
        从以下版本开始:
        1.3.0
        默认值:
        {}