AOP 报错 return value from advice does not match primitive return type for: public boolean

return value from advice does not match primitive return type for: public boolean

环绕型切面的返回值不能为 void ,应该为 Object


参考资料:

1、AOP exception when calling Around aspects on
https://stackoverflow.com/questions/19657924/aop-exception-when-calling-around-aspects-on

2、编写aop:around时出现的异常org.springframework.aop.AopInvocationException:
https://blog.csdn.net/u013066244/article/details/22299837

猜你喜欢

转载自blog.csdn.net/heatdeath/article/details/80199495