问题描述
这个地方为何报空指针
解决方案
解决方案二:
CreateLog这个注解什么用?AOP用的很少,不清楚,邦楼主顶下
解决方案三:
应该是你上一句的method没有取到,然后你强制类型转换就会报空指针错。另外不知道楼主想取的是不是第一个方法,如果是的话应该Class.forName("test..AnotationTest").getDeclaredMethods()[0];
时间: 2024-09-07 22:55:05
这个地方为何报空指针
解决方案二:
CreateLog这个注解什么用?AOP用的很少,不清楚,邦楼主顶下
解决方案三:
应该是你上一句的method没有取到,然后你强制类型转换就会报空指针错。另外不知道楼主想取的是不是第一个方法,如果是的话应该Class.forName("test..AnotationTest").getDeclaredMethods()[0];