[Updated] Weaving aspects at compile-time with AspectJ

AspectJ is an aspect-oriented programming (AOP) extension for Java. It weaves aspects into Java bytecode at either compile-time or load-time. In a previous post , we explored load-time weaving using Spring AOP. In this post, we’ll revisit the same example, and reimplement it using the AspectJ Compiler ajc to weave aspects at compile time. Note The code in this post is written using: Java 25…