【发布时间】:2011-08-20 00:27:21
【问题描述】:
线程“main”中的异常 org.springframework.beans.factory.BeanCreationException:错误 用名字创建bean 'org.springframework.aop.aspectj.AspectJPointcutAdvisor#0': bean 实例化失败;嵌套异常是 org.springframework.beans.BeanInstantiationException: 不能 实例化 bean 类 [org.springframework.aop.aspectj.AspectJPointcutAdvisor]:构造函数 抛出异常;嵌套异常是 java.lang.IllegalArgumentException:切入点格式不正确: 在字符位置 49 处期待“名称模式” 执行(*com.idol.performers.Performer.perform(..)
我的切入点有什么问题?书中说
(..) // means taking any arguments
我的 xml:
...
<aop:before pointcut="execution(*com.idol.performers.Performer.perform(..))" method="takeSeats"/>
...
【问题讨论】:
标签: spring aop spring-aop pointcut