<dependencies> <!-- Nepxion Matrix Aop Starter --> <dependency> <groupId>com.nepxion</groupId> <artifactId>matrix-aop-starter</artifactId> <version>1.0.0</version> </dependency> </dependencies> @Aspect @Component public class LogAspect { @Before("execution(* com.example.library.*.*(..))") public void beforeMethod(JoinPoint joinPoint) { String methodName = joinPoint.getSignature().getName(); System.out.println("Method " + methodName + " is about to be executed"); } } # Enable Matrix Aop Starter nepxion.matrix.aop.enabled=true


上一篇:
下一篇:
切换中文