反射中,Method.getParameterAnnotations()用法
Method.getParameterAnnotations()用法最近学习反射和注解,顺便记录下来定义@MyRequestParameter注解@Target(value = {ElementType.PARAMETER}) //表示该注解只能应用在参数上@Retention(value = RetentionPolicy.RUNTIME) //表示该注解在运行时期仍可以起作用publ...
原创
2019-10-10 10:25:43 ·
2914 阅读 ·
0 评论