我得到这个错误的Web应用程序启动Spring AOP的表达
产生的原因:org.springframework.beans.factory.BeanCreationException:错误创建名称为豆“org.springframework.aop.aspectj.AspectJPointcutAdvisor#0 ':bean的实例化失败;嵌套异常是org.springframework.beans.BeanInstantiationException:无法实例化bean类[org.springframework.aop.aspectj.AspectJPointcutAdvisor]:构造函数抛出异常;嵌套的例外是java.lang.IllegalArgumentException异常:错误的:: 0切入点
这里的显示在底部
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
我的切入点的XML的一部分.....事情省略
正式绑定<aop:config>
<aop:aspect id="bamAspectAroundID" ref="bamAspectAround">
<aop:pointcut id="bamAroundMethodPointcut" expression="execution(* testBA*(..))" />
<aop:around method="aspectAroundMethod" pointcut-ref="bamAroundMethodPointcut"/>
</aop:aspect>
</aop:config>
在我班的一个
,我有一个虚拟的方法
public void testBAM() {
System.out.println("in testBAM() ");
}
的expressi对我来说似乎没有问题。任何指针?我们使用的是aspectj 1.6.2。谢谢。