title: Is there a built-in Spring environment variable for the web context root?
body: <p>I'm using Spring Web Services to expose a service as a web service. In my spring configuration xml file, I have a bean which is an instance of DefaultWsdl11Definition.  One of the properties that needs to be set is the <strong>locationUri</strong>. This needs to be a fully qualified Uri, but I don't want to have to change this value when the application gets promoted from dev to uat and to production.  Spring knows what the web application context root is, so is there a variable that I can specify in my configuration file to access it?</p>
  
  <p>Something like:</p>
  
  <pre><code>&lt;bean id="myWebServices"
      class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition"&gt;
      &lt;property name="schemaCollection"&gt;
          &lt;bean
              class="org.springframework.xml.xsd.commons.CommonsXsdSchemaCollection"&gt;
              &lt;property name="xsds" ref="xsdList"/&gt;
              &lt;property name="inline" value="true" /&gt;
          &lt;/bean&gt;
      &lt;/property&gt;
      &lt;property name="portTypeName" value="myWebServices" /&gt;
      &lt;property name="locationUri" value="${webContextRoot}/webServices" /&gt;
  &lt;/bean&gt;
  </code></pre>