public class SpringAssit extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static org.springframework.context.ApplicationContext |
context |
| 构造器和说明 |
|---|
SpringAssit(org.springframework.core.env.Environment environment) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Set<Method> |
detectHandlerFiled(Object handler,
Class<? extends Annotation> classA,
org.springframework.context.ApplicationContext applicationContext)
找到类中有相关注解的方法
|
Map<String,String> |
findAllProps() |
Map<String,LinkedHashMap<String,String>> |
findAllPropsCollect() |
static List<Field> |
selectFields(Class<?> targetType,
Class<? extends Annotation> classA)
找到类型中有Annotation的域
|
public static List<Field> selectFields(Class<?> targetType, Class<? extends Annotation> classA)
targetType - classA - public static Set<Method> detectHandlerFiled(Object handler, Class<? extends Annotation> classA, org.springframework.context.ApplicationContext applicationContext)
handler - classA - applicationContext - public Map<String,LinkedHashMap<String,String>> findAllPropsCollect()
Copyright © 2022–2023. All rights reserved.