Skip to main content

Mini Project: Audit and Timing Aspects

Learn Mini Project: Audit and Timing Aspects (AOP, Spring Boot) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Mini Real-Time Project: Audit and Timing Aspects Problem Every service method must be logged, timed and audited, and failures reported, without copying that code into every method. Requirements Write an aspect that runs before, after returning, after throwing and around service methods. Create a custom @Audited annotation and target only annotated methods with a second aspect. Show the order in which the advice runs. Show the business classes stay clean. Concepts Used @Aspect @Before / @AfterReturning / @AfterThrowing / @Around pointcut expressions custom annotation pointcut proxy-based AOP...

More lessons in AOP