类 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<?>>
EnumerablePropertySource
to adapt annotations marked with@PropertyMapping
.- 从以下版本开始:
- 1.4.0
构造器概要
构造器 构造器 说明 AnnotationsPropertySource(Class<?> source)
AnnotationsPropertySource(String name, Class<?> source)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 boolean
containsProperty(String name)
boolean
equals(Object obj)
Object
getProperty(String name)
String[]
getPropertyNames()
int
hashCode()
boolean
isEmpty()
构造器详细资料
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()