title: Show properties values in views in Spring MVC
body: <p>I'm struggling to make something veeery simple work. Everything I really need to do is to write a property value in a view, i.e.:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;head&gt;
      ...
      &lt;base href="${properties.config.baseurl}" /&gt;
      ...
  &lt;/head&gt;
  &lt;body&gt;
  ...
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>My Spring MVC configuration (relevant bit):</p>
  
  <pre><code>&lt;bean id="properties" class="org.springframework.beans.factory.config.PropertiesFactoryBean"&gt;
      &lt;property name="locations"&gt;
          &lt;list&gt;&lt;value&gt;/WEB-INF/config.properties&lt;/value&gt;&lt;/list&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
      &lt;property name="prefix" value="/WEB-INF/jsp/" /&gt;
      &lt;property name="suffix" value=".jsp" /&gt;
      &lt;property name="exposedContextBeanNames"&gt;
          &lt;list&gt;&lt;value&gt;properties&lt;/value&gt;&lt;/list&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>/WEB-INF/config.properties file:</p>
  
  <pre><code>config.baseurl = http://localhost:8080/
  </code></pre>
  
  <p>The view doesn't display anything at all (i.e. <code>&lt;base href="" /&gt;</code>), can anyone explain to me why?</p>
  
  <p>Thank you.</p>