Spring Boot: How do you specify an environment variable that has dashes in the application.properties? Spring Boot: How do you specify an environment variable that has dashes in the application.properties? spring spring

Spring Boot: How do you specify an environment variable that has dashes in the application.properties?


This has been fixed as of Spring Boot 1.2.5. Previously, you'd have to use MCL_SSO_FRONTEND-URL (notice the dash that can't be translated to an underscore).

You can play with bindings using this sample project.


Just get rid of the dash:

mcl.sso.mocking-agent > MCL_SSO_MOCKINGAGENT