AspectJ异常通知


    @AfterThrowing(value = "execution(* com.snow.demo7.ProductDao.delete(..))",throwing="e")
    public void  afterThrowing(Throwable e){
        System.out.println("异常抛出通知..........");
    }
发布了303 篇原创文章 · 获赞 179 · 访问量 9万+

猜你喜欢

转载自blog.csdn.net/qq_27248989/article/details/103980223