title: Spring annotation @Inject doesn't work
body: <p>I have the code <code>@Inject</code> works in one class but not in other.
  Here's my code:</p>
  
  <ul>
  <li>context.xml</li>
  </ul>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:context="http://www.springframework.org/schema/context"
  
         xsi:schemaLocation=" http://www.springframework.org/schema/beans
                      http://www.springframework.org/schema/beans/spring-beans.xsd
                      http://www.springframework.org/schema/context
                      http://www.springframework.org/schema/context/spring-context.xsd
                      "&gt;
      &lt;bean id="multipartResolver"
            class="org.springframework.web.multipart.commons.CommonsMultipartResolver"&gt;&lt;/bean&gt;
      &lt;context:component-scan base-package="com.myfashions.services"/&gt;
      &lt;context:component-scan base-package="com.myfashions.dao"/&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <ul>
  <li>SellerRetriever.java </li>
  </ul>
  
  <pre class="lang-java prettyprint-override"><code>public class SellerRetriever {
      @Inject
      UserDAO userDAO;
      ...
      ...
  }
  </code></pre>
  
  <p><code>UserDAO</code> class is present in <code>com.myfashions.dao</code> package.
  <code>@Inject</code> is not working in Seller.java. Any reason why?</p>