title: Spring AOP doesn't see the method
body: <p>In my project I have <strong>AspectService</strong> class, that I use to log all controller methods:</p>
  <pre><code>@Component
  @SLFJ
  @Aspect
  public class AspectService {
     @Pointcut(&quot;@annotation(com.aleksandr0412.bookstore.annotations.Audit) &amp;&amp; execution(public * *(..))&quot;)
  public void publicAspectAudit() {
  }
  
  @Around(value = &quot;publicAspectAudit()&quot;)
  public Object aspect(ProceedingJoinPoint joinPoint) throws Throwable {
      ObjectMapper om = new ObjectMapper();
      AuditMessage auditMessage = new AuditMessage();
      UUID uuid = UUID.randomUUID();
      auditMessage.setUuid(uuid);
      auditMessage.setAuditCode(((MethodSignature) joinPoint.getSignature()).getMethod().getAnnotation(Audit.class).value());
      auditMessage.setEventCode(EventCode.START);
      auditMessage.setTimeStart(LocalDateTime.now());
      auditMessage.setUsername(&quot;&quot;);
      Object[] args = Arrays.stream(joinPoint.getArgs())
              .filter(arg -&gt; !(arg instanceof UriComponentsBuilder)).toArray();
      auditMessage.setParams(om.writeValueAsString(args));
  
      log.info(auditMessage.toString());
  
  //-----
  </code></pre>
  <p>My project has 3 modules: first - audit and <strong>AspectService</strong>, second and third is executable modules with different controllers.
  My problem is that in one module public controller-methods with <strong>@Audit</strong> annotations work true, but in another module, <strong>AspectService</strong> doesn't see them.</p>
  <p>Work true:</p>
  <pre><code> @Audit(AuditCode.AUTHOR_CREATE)
      @Override
      public ResponseEntity&lt;AuthorDto&gt; createAuthor(AuthorDto authorDto, UriComponentsBuilder componentsBuilder) {
          log.info(&quot;createAuthor with {} - start &quot;, authorDto);
          AuthorDto result = service.addAuthor(authorDto);
          URI uri = componentsBuilder.path(&quot;/api/author/&quot; + result.getId()).buildAndExpand(result).toUri();
          log.info(&quot;createAuthor end with {}, with result {}&quot;, authorDto, result);
  
          return ResponseEntity.created(uri).body(result);
      }
  </code></pre>
  <p>Doesn't work:</p>
  <pre><code>  @Audit(AuditCode.CREATE_USER)
      @Override
      public ResponseEntity&lt;UserDTO&gt; createUser(
              UserDTO userDTO,
              UriComponentsBuilder componentsBuilder
      ) {
          log.info(&quot;createUser with {} - start &quot;, userDTO);
          if (userDTO == null) {
              throw new EmptyException();
          }
          UserDTO result = userService.add(userDTO);
          URI uri = componentsBuilder.path(&quot;/api/user/&quot; + result.getId()).buildAndExpand(result).toUri();
          log.info(&quot;createUser end with result {}&quot;, result);
          return ResponseEntity.created(uri).body(result);
      }
  </code></pre>
  <p>When I try to debug it, in second example I don't visit <strong>AspectService</strong> class.
  Where am I make mistake?</p>