SpringAop 报错

  • Post author:
  • Post category:其他


AOP configuration seems to be invalid: tried calling method [public abstract com.spring.entity.User com.spring.biz.UserBiz.getUserByName(java.lang.String)] on target [userBizImpl]; nested exception is java.lang.IllegalArgumentException: object is not an instance of declaring class

Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)

at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)14:40:17,109 DEBUG JDBCTransaction:152 – rollback

14:40:17,109 DEBUG JDBCTransaction:163 – rolled back JDBC Co



版权声明:本文为haofeng88885678原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。