|
|
@ -18,7 +18,6 @@ package org.springframework.boot.autoconfigure;
|
|
|
|
|
|
|
|
|
|
|
|
import java.lang.annotation.Documented;
|
|
|
|
import java.lang.annotation.Documented;
|
|
|
|
import java.lang.annotation.ElementType;
|
|
|
|
import java.lang.annotation.ElementType;
|
|
|
|
import java.lang.annotation.Inherited;
|
|
|
|
|
|
|
|
import java.lang.annotation.Retention;
|
|
|
|
import java.lang.annotation.Retention;
|
|
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
import java.lang.annotation.Target;
|
|
|
|
import java.lang.annotation.Target;
|
|
|
@ -29,13 +28,19 @@ import org.springframework.context.annotation.Conditional;
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Auto-configuration classes are regular Spring {@link Configuration @Configuration}
|
|
|
|
* Indicates that a class provides configuration that can be automatically applied by
|
|
|
|
* beans. Generally auto-configuration beans are {@link Conditional @Conditional} beans
|
|
|
|
* Spring Boot. Auto-configuration classes are regular
|
|
|
|
|
|
|
|
* {@link Configuration @Configuration} with the exception that
|
|
|
|
|
|
|
|
* {@literal Configuration#proxyBeanMethods() proxyBeanMethods} is always {@code false}.
|
|
|
|
|
|
|
|
* <p>
|
|
|
|
|
|
|
|
* Generally auto-configuration classes are marked as {@link Conditional @Conditional}
|
|
|
|
* (most often using {@link ConditionalOnClass @ConditionalOnClass} and
|
|
|
|
* (most often using {@link ConditionalOnClass @ConditionalOnClass} and
|
|
|
|
* {@link ConditionalOnMissingBean @ConditionalOnMissingBean} annotations).
|
|
|
|
* {@link ConditionalOnMissingBean @ConditionalOnMissingBean} annotations).
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @author Moritz Halbritter
|
|
|
|
* @author Moritz Halbritter
|
|
|
|
* @see EnableAutoConfiguration
|
|
|
|
* @see EnableAutoConfiguration
|
|
|
|
|
|
|
|
* @see AutoConfigureBefore
|
|
|
|
|
|
|
|
* @see AutoConfigureAfter
|
|
|
|
* @see Conditional
|
|
|
|
* @see Conditional
|
|
|
|
* @see ConditionalOnClass
|
|
|
|
* @see ConditionalOnClass
|
|
|
|
* @see ConditionalOnMissingBean
|
|
|
|
* @see ConditionalOnMissingBean
|
|
|
@ -44,7 +49,6 @@ import org.springframework.context.annotation.Configuration;
|
|
|
|
@Target(ElementType.TYPE)
|
|
|
|
@Target(ElementType.TYPE)
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
|
|
@Documented
|
|
|
|
@Documented
|
|
|
|
@Inherited
|
|
|
|
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
@Configuration(proxyBeanMethods = false)
|
|
|
|
public @interface AutoConfiguration {
|
|
|
|
public @interface AutoConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|