title: Give property names/values with @Component
body: <p>Please deal with this basic question.</p>
  
  <p>I used to use @Autowired annotation where properties (class variables) can be given a value using key/value format for that class.</p>
  
  <pre><code>&lt;bean id="class" class="a.b.c.Class" lazy-init="true"&gt;
          &lt;property name="var1" value="${var1}" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>I changed Class to a @Component with component scan option which doesn't require its autowiring. How can I add property variables now?</p>
  
  <p>Also, I don't want to get into trouble while writing Junits.</p>
  
  <p>Thanks,</p>