错误原因:
Exception in thread "main" java.lang.ClassCastException: com.sun.proxy.$Proxy6 cannot be cast to com.panghl.mapper.UserMapperImpl3
对于Spring AOP 采用两种代理方法,一种是常规JDK,一种是CGLIB,我的UserMapperImpl3实现了一个接口UserMapper,当代理对象实现了至少一个接口时,默认使用JDK动态创建代理对象,当代理对象没有实现任何接口时,就会使用CGLIB方法。由于UserMapperImpl3实现了UserMapper接口,所以强制转换必须用父类UserMapper来定义