title: How to use SpEL in Spring application.properties?
body: <p>Is it possible to use SpEL expressions in spring <code>application.properties</code>?</p>
  
  <p>My goal is to include the hostname in a property. The property is read by a framework that I have no control of, that's why I have to directly add the hostname into that property.</p>
  
  <p>The following example does of course not work, but shows my intention:</p>
  
  <pre><code>spring.application.name=Some prefix - http://#{T(java.net.InetAddress).localHost.canonicalHostName}
  </code></pre>