我使用的是@Before和@AfterThrowing Spring AOP建议。在之前的建议中,我正在验证数据,并在验证失败时抛出用户定义的异常。因为我已经定义了一个@AfterThrowing,所以我希望这将捕获错误以打印我需要的其他信息。但出乎意料的是,我不能点击@AfterThrowing的建议。我不确定我这样做是否正确,或者Spring AOP不支持这样做。joinPoint.getSignature()
new Exception(); throw new ApplicationException("test");然后,我编写了一个AOP类来处理异常,然后像这样返回Model:public void getRefundPointCut() {
@AfterThrowing但是结果是错误的。org.springframework.web.util.NestedServle
after function advice that accepts the input " + param + " and returns " + returnedString);上述方法的结果是Executing after function advice that accepts the input " + param + " and returns " + returnedString);值和切入点的区别是什么