title: Spring Web App Deployment:: how do you hide data in application.properties?
body: <p>everyone!</p>
  <p>this is going to be my first time pushing a newly developed Spring Boot App and I was wondering if there is a way to protect passwords and other sensitive information written in the application.properties file.</p>
  <p>Assuming we have the following lines:</p>
  <pre><code># PostgreSQL connection settings
  spring.datasource.jdbc-url=jdbc:postgresql://localhost:5432/bdreminder
  spring.datasource.username=username
  spring.datasource.password=password
  </code></pre>
  <p>The source code is to be first stored on GitHub and having the credentials stored in plain text does not seem to be a good idea.
  So, I could probably add the file to the .gitignore one; I could set some environment variables on the host but how would it populate the .properties file afterward? Also, this seems quite cumbersome in terms of the scaling later on.</p>
  <p>So, basically, I am trying to see how it is done in a real-life :)</p>
  <p>Please, help :)</p>