title: Spring's @Autowired doesn't inject dependency
body: <p>I have a project that consists of various modules.
  Basically, I've worked with Spring MVC &amp; JUnit 4, and everything was working good.
  But Now, I added few classes which aren't related to testing or MVC, and the @Autowired annotation doesn't inject objects to them.
  The same objects are injected to the MVC and JUnit classes, so I realy confused.</p>
  
  <p>This is the Spring Context XML:</p>
  
  <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:context="http://www.springframework.org/schema/context"
      xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="
          http://www.springframework.org/schema/beans     
          http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
          http://www.springframework.org/schema/context 
          http://www.springframework.org/schema/context/spring-context-3.0.xsd
          http://www.springframework.org/schema/mvc
          http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd"&gt;
  
      &lt;context:component-scan base-package="com.justic.more" /&gt;
      &lt;mvc:annotation-driven /&gt;
      &lt;context:annotation-config /&gt;
      &lt;bean id="monkDAO" class="com.justic.more.data.monkDAO" /&gt;
      &lt;bean id="BidDAO" class="com.justic.more.data.BidDAO" /&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>The Class that I want to inject to:</p>
  
  <pre><code>@Component
  Public Class Tesser {
  
  @Autowired
  MonkDAO monkdao;
  
  ...
  blablabla
  ...
  }
  </code></pre>