I have exported some simple db creds on my machine as ENV variables.
export MYSQL_USER=root
export MYSQL_PASS=pass
I'm trying to load these dynamically into my profile into spring boot, but to no avail. I'm starting to believe this is because the application runs inside a TomCat container and therefore isolated from the machine env vars.
Development Environment Application Properties File
spring.datasource.username = ${MYSQL_USER}
However, it's still being seen as literal plain text of ${MYSQL_USER}
. Does Spring Boot have the capability for readingg in system environment variables?