由於在使用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
要學會對異常進行分析,看不懂的就用詞典查,多想想