本文介绍了AspectJ表达式在切入点错误中提供了形式上的未绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 aspectJ 中包含表达式:
@Pointcut("within(com.param.cpms.dao.impl.ProjectMetaDaoImpl)") public void daoExceptionHandle() { }在 Spring 3.0 启动时,出现以下错误:
At Spring 3.0 startup, I am getting the following error :
nested exception is java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut推荐答案
问题可能不在您的切入点中,而是在使用该切入点并使用切入点中不存在的参数的建议中.只需从建议中删除参数(或者将其添加到切入点即可).
Probably the problem is not in your pointcut, but in an advice using that pointcut and using a parameter which does not exist in the pointcut. Just remove the parameter from the advice (well, or add it to the pointcut).
更多推荐
AspectJ表达式在切入点错误中提供了形式上的未绑定
发布评论