title: Spring aop is not getting triggerd for external jar method in spring boot application
body: <p>I am trying to have point cut for a method in jar and it is not getting triggered properly</p>
  
  <p>I have my rest endpoint code as below : </p>
  
  <pre><code>package com.example.log.javatpoint;
  
  
  import org.apache.logging.log4j.LogManager;
  import org.apache.logging.log4j.Logger;
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RequestMethod;
  import org.springframework.web.bind.annotation.RestController;
  
  @RestController
  public class Test{
  
      @Autowired
      Operation op;
  
      private static final Logger LOG = LogManager.getLogger(Test.class);
  
      @RequestMapping(value = "/customs", method = RequestMethod.GET)
      public String custom() {
          op.msg();  
          op.display(); 
  
          LOG.info("Hello World");
          LOG.info("Hello {0}", "World 2");
  
          return "custom";
      }
  }
  </code></pre>
  
  <p>Operation class :</p>
  
  <pre><code>@Component
  public  class Operation{
      public void msg(){System.out.println("msg() is invoked");}
      public void display(){System.out.println("display() is invoked");}
  }
  </code></pre>
  
  <pre><code>@Aspect
  @Component
  public class TrackOperation
  {
      @Pointcut("execution(* Operation.*(..))")
      public void abcPointcut(){}
  
      @Around("abcPointcut()")
      public Object myAdvice(ProceedingJoinPoint pjp) throws Throwable 
      {
          System.out.println("Additional Concern Before calling actual method");
          Object obj=pjp.proceed();
          System.out.println("Additional Concern After calling actual method");
          return obj;
      }
  
      @Pointcut("execution(* org.apache.logging.log4j.LogManager.info(..))")
      public void abcPointcutLog(){}
  
      @Around("abcPointcutLog()")
      public Object myAdviceLog(ProceedingJoinPoint pjp) throws Throwable 
      {
          System.out.println("Additional Concern Before calling actual method");
          Object obj=pjp.proceed();
          System.out.println("Additional Concern After calling actual method");
          return obj;
      }
  }
  </code></pre>
  
  <p>Note : Point cut is working for Operation class where as point cut is not working for <code>org.apache.logging.log4j.LogManager</code> tried also providing <code>org.apache.logging.log4j.Logger</code> in point cut.</p>
  
  <p>I expect the output as :</p>
  
  <pre><code>Additional Concern Before calling actual method
  2019-09-24 12:28:58.540  INFO 10076 --- [nio-8080-exec-1] com.example.log.javatpoint.Test          : Hello World
  Additional Concern After calling actual method
  Additional Concern Before calling actual method
  2019-09-24 12:28:58.540  INFO 10076 --- [nio-8080-exec-1] com.example.log.javatpoint.Test          : Hello {0}
  Additional Concern After calling actual method
  </code></pre>
  
  <p>but the actual output is :</p>
  
  <pre><code>2019-09-24 12:28:58.540  INFO 10076 --- [nio-8080-exec-1] com.example.log.javatpoint.Test          : Hello World
  2019-09-24 12:28:58.540  INFO 10076 --- [nio-8080-exec-1] com.example.log.javatpoint.Test          : Hello {0}
  </code></pre>