Java 仅允许在around通知(arg 1 in)(around(extraFlags:2))中使用ProceedingJoinPoint:
当我使用自定义体系结构的监控组件时,我的应用程序出现问题,当我编译时,我得到以下结果:Java 仅允许在around通知(arg 1 in)(around(extraFlags:2))中使用ProceedingJoinPoint:,java,spring,aspectj,Java,Spring,Aspectj,当我使用自定义体系结构的监控组件时,我的应用程序出现问题,当我编译时,我得到以下结果: of ProceedingJoinPoint is allowed only on around advice (arg 1 in (around(extraFlags: 2): [ERROR] use of ProceedingJoinPoint is allowed only on around advice (arg 1 in (around(extraFlags: 2): (@annotation
of ProceedingJoinPoint is allowed only on around advice (arg 1 in (around(extraFlags: 2):
[ERROR] use of ProceedingJoinPoint is allowed only on around advice
(arg 1 in (around(extraFlags: 2):
(@annotation(org.springframework.transaction.annotation.Transactional)
&&
persingleton(com.indra.xxxx4java.logaudit.aspectj.Log))->java.lang.Object
com.indra.icore4java.logaudit.aspectj.Log.transaccionales(org.aspectj.lang.ProceedingJoinPoint,
org.springframework.transaction.annotation.Transactional)))
我不知道这意味着什么,所以我不知道该怎么办,有人能帮我解决这个糟糕的信息吗?非常简单:
只允许在周围的建议上使用ProceedingJoinPoint
。你有什么建议?你有一个方面不是一个周围的方面,它试图使用ProceedingJoinPoint,它只是一个简单的方面如果你想要更多的细节,你必须发布代码,包括com.indra.icore4java.logaudit.aspectj.Log.transaccionales和任何你可能用来连接的配置。