程序包 org.springframework.boot.autoconfigure.condition
@Condition annotations and supporting classes.类概要 类 说明 AbstractNestedCondition Abstract base class for nested conditions.AbstractNestedCondition.MemberMatchOutcomes AllNestedConditions Conditionthat will match when all nested class conditions match.AnyNestedCondition Conditionthat will match when any nested class condition matches.ConditionEvaluationReport Records condition evaluation details for reporting and logging.ConditionEvaluationReport.ConditionAndOutcome Provides access to a singleConditionandConditionOutcome.ConditionEvaluationReport.ConditionAndOutcomes Provides access to a number ofConditionEvaluationReport.ConditionAndOutcomeitems.ConditionMessage A message associated with aConditionOutcome.ConditionOutcome Outcome for a condition match, including log message.NoneNestedConditions Conditionthat will match when none of the nested class conditions match.OnPropertyListCondition Conditionthat checks if a property whose value is a list is defined in the environment.ResourceCondition SpringBootConditionused to check if a resource can be found using a configurable property and optional default location(s).SpringBootCondition Base of allConditionimplementations used with Spring Boot.枚举概要 枚举 说明 ConditionalOnJava.Range Range options.ConditionalOnWebApplication.Type Available application types.ConditionMessage.Style Render styles.SearchStrategy Some named search strategies for beans in the bean factory hierarchy.注释类型概要 注释类型 说明 ConditionalOnBean Conditionalthat only matches when beans meeting all the specified requirements are already contained in theBeanFactory.ConditionalOnClass Conditionalthat only matches when the specified classes are on the classpath.ConditionalOnCloudPlatform Conditionalthat matches when the specified cloud platform is active.ConditionalOnExpression Configuration annotation for a conditional element that depends on the value of a SpEL expression.ConditionalOnJava Conditionalthat matches based on the JVM version the application is running on.ConditionalOnJndi Conditionalthat matches based on the availability of a JNDIInitialContextand the ability to lookup specific locations.ConditionalOnMissingBean Conditionalthat only matches when no beans meeting the specified requirements are already contained in theBeanFactory.ConditionalOnMissingClass Conditionalthat only matches when the specified classes are not on the classpath.ConditionalOnNotWebApplication Conditionalthat only matches when the application context is a not a web application context.ConditionalOnProperty Conditionalthat checks if the specified properties have a specific value.ConditionalOnResource Conditionalthat only matches when the specified resources are on the classpath.ConditionalOnSingleCandidate Conditionalthat only matches when a bean of the specified class is already contained in theBeanFactoryand a single candidate can be determined.ConditionalOnWebApplication Conditionalthat matches when the application is a web application.