From 78363c3c2420f63b0ac293c43e9bafad4afadaf5 Mon Sep 17 00:00:00 2001 From: linlei Date: Mon, 29 Apr 2024 11:11:50 +0800 Subject: [PATCH] =?UTF-8?q?MethodBeforeAdvice=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spring-aop/spring-aop-advice-methodBeforeAdvice/README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/spring-aop/spring-aop-advice-methodBeforeAdvice/README.md b/spring-aop/spring-aop-advice-methodBeforeAdvice/README.md index bfb5d39..82bde6b 100644 --- a/spring-aop/spring-aop-advice-methodBeforeAdvice/README.md +++ b/spring-aop/spring-aop-advice-methodBeforeAdvice/README.md @@ -92,8 +92,6 @@ BeforeAdvice --> Advice MethodBeforeAdvice --> BeforeAdvice ~~~ - - ### 七、最佳实践 使用`MethodBeforeAdvice`接口。首先,通过创建代理工厂和目标对象,然后创建自定义的前置通知`MyMethodBeforeAdvice`,将其添加到代理工厂中。接着,通过代理工厂获取代理对象,并调用代理对象的方法。在方法调用之前,前置通知会被触发执行,执行自定义的逻辑。