动态代理所代理的Controller中含有RedirectAttributes时报错java.lang.NoSuchMethodException
今天在写项目的时候,做一个日志模块,记录用户在系统中做的操作。但是在AOP事务通知里面,通过.class对象.getMethod获取用户执行的方法时,传递的参数列表中带有RedirectAttributes的都会报异常java.lang.NoSuchMethodException
后来通过debug,找到异常详细描述如下
最后将 RedirectAttributes 改为RedirectAttr...
原创
2020-02-25 01:17:44 ·
244 阅读 ·
0 评论