title: How to modify a value in a property file, when key-value is fetched by a lib class?
body: <p>So i have a properties file, where the current env is passed as a value to the <code>spring.profiles.active</code> property. I need this value to be a edited such that all the hyphens are changed to underscore. I cannot make changes in the Java code.</p>
  
  <p>I tried using SpEL, but it wasn't helpful.</p>
  
  <p><code>spring.profiles.active=${oauth2.env}</code></p>
  
  <p><strong>actual</strong>: <code>spring.profiles.active=prflv-ssz</code><br>
  <strong>expected</strong>: <code>spring.profiles.active=prflv_ssz</code></p>