public class AnnotationUtils
extends java.lang.Object
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
filterProfile(Profile profile,
java.lang.String profileStr)
过滤掉非当前环境的配置
|
static <A extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.reflect.AnnotatedElement element,
java.lang.Class<A> annotationType)
获取指定类型的注解或注解上有指定的注解.
|
public static <A extends java.lang.annotation.Annotation> java.lang.annotation.Annotation getAnnotation(java.lang.reflect.AnnotatedElement element,
java.lang.Class<A> annotationType)
A - 注解类型element - 注解元素annotationType - 注解类型public static boolean filterProfile(Profile profile, java.lang.String profileStr)
profile - 注解配置profileStr - 配置环境