title: Spring component scanning : can we use @componentscan and <context:component-scan base-package="com.web.*" /> in same project?
body: <p>I have configured component scan in dispatcher servlet
  <strong>code:</strong></p>
  
  <pre><code>&lt;context:component-scan base-package="com.web.rest"
          annotation-config="true" scoped-proxy="targetClass" /&gt;
  &lt;annotation-driven /&gt;
  </code></pre>
  
  <p>and this code is scanning "com.web.rest" package,
  now I have to scan one more package using @ComponentScan annotation, </p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>@Configuration
  @ComponentScan(basePackages = {"com.web.utils"})
  @Component
  public class FileUtil {
  }
  </code></pre>
  
  <p>But @ComponentScan(basePackages = {"com.web.utils"}) is not working for me, it is not scanning "com.web.utils" package</p>
  
  <p>can we use annotation driven and xml configuration component scan in same project??</p>