title: Is there a shorthand for creating a String constant in Spring context XML file?
body: <p>I need to define a string value in Spring context XML file that is shared by multiple beans.  </p>
  
  <p>This is how I do it:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;bean id="aSharedProperty" class="java.lang.String"&gt;
      &lt;constructor-arg type="java.lang.String" value="All beans need me :)"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Creating a java.lang.String bean by passing a constructor argument of java.lang.String seems kludgy.</p>
  
  <p>Is there a shortcut?</p>
  
  <p>I know this property can be passed using PropertyOverrideConfigurer, but I want to keep this property within the XML file.</p>