由于在使用aop注解方式时,错误的给@Aspect后添加了参数,也就是(“。。。”)形式,导致出现以下错误:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deptService' defined in file
[F:\myeclipse work\spring1.3\WebRoot\WEB-INF\classes\aop\annotation\service\DeptServiceImpl.class]:BeanPostProcessor before instantiation of bean failed; nested exception is
java.lang.IllegalStateException: Per-clause not recognized: myAspect
Caused by: java.lang.IllegalStateException: Per-clause not recognized: myAspect
要学会对异常进行分析,看不懂的就用词典查,多想想