Pointcut expression 'abc(inString)' contains unsupported pointcut primitive 'call'

前端 未结 1 1852
攒了一身酷
攒了一身酷 2021-01-22 00:31

I am new to spring-aop concepts.

I am getting this error during compilation.

org.aspectj.weaver.tools.UnsupportedPointcutPrimitiveException: P

相关标签:
1条回答
  • 2021-01-22 00:44

    Spring uses (by default) proxy based AOP and as such has only limited support for joinpoint expression. The call join point that isn't supported only the execution join point is. The supported join point expressions are documenten here.

    Next to that you are trying to apply AOP to a non Spring managed bean this will also not work with a proxy based solution.

    For both situations you need to use either load or compile time weaving to make it work.

    0 讨论(0)
提交回复
热议问题