At tutorialspoint, this is an example of spring:

package com.tutorialspoint; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.annotation.AfterReturning; @Aspect public class Logging { /** * This is the method which I would like to execute * after a selected method execution. */ @AfterReturning(PointCut = "execution(* com.tutorialspoint.Student.*(..))", returning = "retVal") public void afterReturningAdvice(JoinPoint jp, Object retVal){ System.out.println("Method Signature: " + jp.getSignature()); System.out.println("Returning:" + retVal.toString() ); } } 

I copy it completely, but the idea emphasizes red with PointCut (what’s in brackets after Afterreturning. I just copied the rest of the code ( https://www.tutorialspoint.com/springaop/springaop_after_returning1.htm ). How can I overcome this?

    1 answer 1

    poinCut it was necessary to write with a small letter