类 OnDatabaseInitializationCondition
java.lang.Object
org.springframework.boot.autoconfigure.condition.SpringBootCondition
org.springframework.boot.autoconfigure.sql.init.OnDatabaseInitializationCondition
- 所有已实现的接口:
Condition
Condition that checks if the database initialization of a particular component should
be considered.
- 从以下版本开始:
- 2.6.2
- 作者:
- Stephane Nicoll
- 另请参阅:
-
构造器概要
构造器构造器说明OnDatabaseInitializationCondition
(String name, String... propertyNames) Create a new instance with the name of the component and the property names to check, in order. -
方法概要
修饰符和类型方法说明getMatchOutcome
(ConditionContext context, AnnotatedTypeMetadata metadata) Determine the outcome of the match along with suitable log output.从类继承的方法 org.springframework.boot.autoconfigure.condition.SpringBootCondition
anyMatches, logOutcome, matches, matches
-
构造器详细资料
-
OnDatabaseInitializationCondition
Create a new instance with the name of the component and the property names to check, in order. If a property is set, its value is used to determine the outcome and remaining properties are not tested.- 参数:
name
- the name of the componentpropertyNames
- the properties to check (in order)
-
-
方法详细资料
-
getMatchOutcome
从类复制的说明:SpringBootCondition
Determine the outcome of the match along with suitable log output.- 指定者:
getMatchOutcome
在类中SpringBootCondition
- 参数:
context
- the condition contextmetadata
- the annotation metadata- 返回:
- the condition outcome
-