- smile是一個簡單的MVC框架,是練手寫的,適合javaer學習mvc架構,它的亮點是web容器是用Netty寫的,利用java多線程實現的web容器,後面也會完善並介紹.
ReflectionTools
這個工具的主要亮點是可以獲取到方法中參數的詳細描述信息ParamDefinition
查詢指定方法中被指定註解修飾的參數描述
public static List
getMethod(Object obj, String methodName)
查詢指定方法參數描述信息
public static List
getParameterDefinitions(Method method)
根據方法名獲取指定方法
public static List
getParameterDefinitions(Method method, Class extends Annotation> annotation)
AnnotationTools
這個工具的主要亮點是解決了,當需要獲取註解信息時候,要強轉指定註解類型.
比如這樣:
當使用了該註解只需要這樣
根據註解獲取註解實例信息
public static Map
getAnnotationAttributeAsMap(Annotation annotation)
閱讀更多 東方既白 的文章