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