title: Advice not getting called in Spring-AOP
body: <p>I have declared the following Aspect which advices a dao call, I'm trying to run @Before advice but its not working.</p>
  
  <p>Here goes the aspect.</p>
  
  <pre><code>package com.hedgebenefits.aop;
  
  import org.aspectj.lang.annotation.Aspect;
  import org.aspectj.lang.annotation.Before;
  @Aspect
  public class AccessControlAspect {
      @Before("within(com.hedgebenefits.daos..*) &amp;&amp; execution(public * *(..))")
      public void daoCall() {
          System.out.println("Before advice invoked for DAO method called ");
      }
  }
  </code></pre>
  
  <p>My application-context.xml has the following tag</p>
  
  <pre><code>&lt;aop:aspectj-autoproxy/&gt;
  </code></pre>
  
  <p>My Dao class is as follows:</p>
  
  <pre><code>package com.hedgebenefits.daos.impl;
  
  import com.hedgebenefits.daos.AdminDao;
  import com.hedgebenefits.domain.Admin;
  import org.springframework.stereotype.Repository;
  
  @Repository
  public class AdminDaoImpl implements AdminDao{
      @Override
      public void save(Admin admin) {
      }
  }
  </code></pre>
  
  <p>I put a breakpoint but I can see that its not active, I'm definitely doing some silly mistake here but can't figure out. Pl. advice.</p>