為什么我拋出異常后還是執行了afterReturning,代碼錯誤,非問題
public?class?AspectBiz?{ ????public?void?biz()?{ ????????System.out.println("AspectBiz?biz."); ????????throw?new?RuntimeException();//?強制拋出異常 ????} }
MoocAspect before.
AspectBiz biz.
MoocAspect afterReturning
MoocAspect afterThrowing.
看了debug,查配置,找到問題了
2017-01-08
不可能的事啊,應該你寫錯了,你的test代碼和配置的代碼上來給我看看