动态代理所代理的Controller中含有RedirectAttributes时报错java.lang.NoSuchMethodException

今天在写项目的时候,做一个日志模块,记录用户在系统中做的操作。但是在AOP事务通知里面,通过.class对象.getMethod获取用户执行的方法时,传递的参数列表中带有RedirectAttributes的都会报异常java.lang.NoSuchMethodException 后来通过debug,找到异常详细描述如下 最后将 RedirectAttributes 改为RedirectAttri
相关文章
相关标签/搜索