类 Deprecation
- java.lang.Object
 - org.springframework.boot.configurationmetadata.Deprecation
 
- 所有已实现的接口:
 Serializable
public class Deprecation extends Object implements Serializable
Indicate that a property is deprecated. Provide additional information about the deprecation.- 从以下版本开始:
 - 1.3.0
 - 另请参阅:
 - 序列化表格
 
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classDeprecation.LevelDefine the deprecation level.
构造器概要
构造器 构造器 说明 Deprecation()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Deprecation.LevelgetLevel()Define theDeprecation.Levelof deprecation.StringgetReason()A reason why the related property is deprecated, if any.StringgetReplacement()The full name of the property that replaces the related deprecated property, if any.voidsetLevel(Deprecation.Level level)voidsetReason(String reason)voidsetReplacement(String replacement)StringtoString()
构造器详细资料
Deprecation
public Deprecation()
方法详细资料
getLevel
public Deprecation.Level getLevel()
Define theDeprecation.Levelof deprecation.- 返回:
 - the deprecation level
 
setLevel
public void setLevel(Deprecation.Level level)
getReason
public String getReason()
A reason why the related property is deprecated, if any. Can be multi-lines.- 返回:
 - the deprecation reason
 
getReplacement
public String getReplacement()
The full name of the property that replaces the related deprecated property, if any.- 返回:
 - the replacement property name
 
setReplacement
public void setReplacement(String replacement)