title: Spring : how to replace constructor-arg by annotation?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4614349/replace-constructor-arg-with-spring-annotation">replace &lt;constructor-arg&gt; with Spring Annotation</a>  </p>
  </blockquote>
  
  
  
  <p>i would like to replace an XML applicationContext configuration by an annotation.</p>
  
  <p>How to replace a simple bean with constructor arguments which are fixed ?</p>
  
  <p>Exemple :</p>
  
  <pre><code>&lt;bean id="myBean" class="test.MyBean"&gt;
      &lt;constructor-arg index="0" value="$MYDIR/myfile.xml"/&gt;
      &lt;constructor-arg index="1" value="$MYDIR/myfile.xsd"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>I'm reading some explanation on @Value, but i don't really understand how to pass some fixed values...</p>
  
  <p>Is it possible to load this bean when the web application is deployed ?</p>
  
  <p>Thank you.</p>