Caused by: java.lang.IllegalStateException: Per-clause not recognized

由於在使用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

要學會對異常進行分析,看不懂的就用詞典查,多想想
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章