类 AnnotationsPropertySource
- java.lang.Object
- org.springframework.core.env.PropertySource<T>
- org.springframework.core.env.EnumerablePropertySource<Class<?>>
- org.springframework.boot.test.autoconfigure.properties.AnnotationsPropertySource
public class AnnotationsPropertySource extends org.springframework.core.env.EnumerablePropertySource<Class<?>>
EnumerablePropertySourceto adapt annotations marked with@PropertyMapping.- 从以下版本开始:
- 1.4.0
构造器概要
构造器 构造器 说明 AnnotationsPropertySource(Class<?> source)AnnotationsPropertySource(String name, Class<?> source)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancontainsProperty(String name)booleanequals(Object obj)ObjectgetProperty(String name)String[]getPropertyNames()inthashCode()booleanisEmpty()
构造器详细资料
AnnotationsPropertySource
public AnnotationsPropertySource(Class<?> source)
AnnotationsPropertySource
public AnnotationsPropertySource(String name, Class<?> source)
方法详细资料
containsProperty
public boolean containsProperty(String name)
- 覆盖:
containsProperty在类中org.springframework.core.env.EnumerablePropertySource<Class<?>>
getProperty
public Object getProperty(String name)
- 指定者:
getProperty在类中org.springframework.core.env.PropertySource<Class<?>>
getPropertyNames
public String[] getPropertyNames()
- 指定者:
getPropertyNames在类中org.springframework.core.env.EnumerablePropertySource<Class<?>>
isEmpty
public boolean isEmpty()
equals
public boolean equals(Object obj)
- 覆盖:
equals在类中org.springframework.core.env.PropertySource<Class<?>>